Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/nd6.c
| Show First 20 Lines • Show All 278 Lines • ▼ Show 20 Lines | nd6_ifattach(struct ifnet *ifp) | ||||
| if ((ifp->if_flags & IFF_LOOPBACK) == 0) | if ((ifp->if_flags & IFF_LOOPBACK) == 0) | ||||
| nd->flags |= ND6_IFF_IFDISABLED; | nd->flags |= ND6_IFF_IFDISABLED; | ||||
| /* A loopback interface always has ND6_IFF_AUTO_LINKLOCAL. | /* A loopback interface always has ND6_IFF_AUTO_LINKLOCAL. | ||||
| * XXXHRS: Clear ND6_IFF_AUTO_LINKLOCAL on an IFT_BRIDGE interface by | * XXXHRS: Clear ND6_IFF_AUTO_LINKLOCAL on an IFT_BRIDGE interface by | ||||
| * default regardless of the V_ip6_auto_linklocal configuration to | * default regardless of the V_ip6_auto_linklocal configuration to | ||||
| * give a reasonable default behavior. | * give a reasonable default behavior. | ||||
| */ | */ | ||||
| if ((V_ip6_auto_linklocal && ifp->if_type != IFT_BRIDGE) || | if ((V_ip6_auto_linklocal && ifp->if_type != IFT_BRIDGE && | ||||
| (ifp->if_flags & IFF_LOOPBACK)) | ifp->if_type != IFT_WIREGUARD) || (ifp->if_flags & IFF_LOOPBACK)) | ||||
| nd->flags |= ND6_IFF_AUTO_LINKLOCAL; | nd->flags |= ND6_IFF_AUTO_LINKLOCAL; | ||||
| /* | /* | ||||
| * A loopback interface does not need to accept RTADV. | * A loopback interface does not need to accept RTADV. | ||||
| * XXXHRS: Clear ND6_IFF_ACCEPT_RTADV on an IFT_BRIDGE interface by | * XXXHRS: Clear ND6_IFF_ACCEPT_RTADV on an IFT_BRIDGE interface by | ||||
| * default regardless of the V_ip6_accept_rtadv configuration to | * default regardless of the V_ip6_accept_rtadv configuration to | ||||
| * prevent the interface from accepting RA messages arrived | * prevent the interface from accepting RA messages arrived | ||||
| * on one of the member interfaces with ND6_IFF_ACCEPT_RTADV. | * on one of the member interfaces with ND6_IFF_ACCEPT_RTADV. | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 2,421 Lines • Show Last 20 Lines | |||||