Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/if_ether.c
Show First 20 Lines • Show All 1,473 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
/* | /* | ||||
* A handler for interface link layer address change event. | * A handler for interface link layer address change event. | ||||
*/ | */ | ||||
static void | static void | ||||
arp_iflladdr(void *arg __unused, struct ifnet *ifp) | arp_iflladdr(void *arg __unused, struct ifnet *ifp) | ||||
{ | { | ||||
/* if_bridge can update its lladdr during if_vmove(), after we've done | |||||
melifaro: Would it be possible to add a comment here describing why do we check this? | |||||
* if_detach_internal()/dom_ifdetach(). */ | |||||
if (ifp->if_afdata[AF_INET] == NULL) | |||||
return; | |||||
lltable_update_ifaddr(LLTABLE(ifp)); | lltable_update_ifaddr(LLTABLE(ifp)); | ||||
if ((ifp->if_flags & IFF_UP) != 0) | if ((ifp->if_flags & IFF_UP) != 0) | ||||
arp_handle_ifllchange(ifp); | arp_handle_ifllchange(ifp); | ||||
} | } | ||||
static void | static void | ||||
Show All 30 Lines |
Would it be possible to add a comment here describing why do we check this?