Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/if_ether.c
Show First 20 Lines • Show All 1,447 Lines • ▼ Show 20 Lines | arp_ifinit(struct ifnet *ifp, struct ifaddr *ifa) | ||||
} | } | ||||
arp_add_ifa_lle(ifp, dst); | arp_add_ifa_lle(ifp, dst); | ||||
} | } | ||||
void | void | ||||
arp_announce_ifaddr(struct ifnet *ifp, struct in_addr addr, u_char *enaddr) | arp_announce_ifaddr(struct ifnet *ifp, struct in_addr addr, u_char *enaddr) | ||||
{ | { | ||||
if (ntohl(addr.s_addr) != INADDR_ANY) | if (ntohl(addr.s_addr) != INADDR_ANY) | ||||
arprequest(ifp, &addr, &addr, enaddr); | arprequest(ifp, &addr, &addr, enaddr); | ||||
} | } | ||||
/* | /* | ||||
* Sends gratuitous ARPs for each ifaddr to notify other | * Sends gratuitous ARPs for each ifaddr to notify other | ||||
* nodes about the address change. | * nodes about the address change. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |