FreeBSD/sys/netinet/ip_carp.c
/*
 * Broadcast a gratuitous ARP request containing
 * the virtual router MAC address for each IP address
 * associated with the virtual router.
 */
Broadcast a gratuitous ARP request containing
the virtual router MAC address for each IP address
associated with the virtual router.
Broadcast a gratuitous ARP request containing the virtual router MAC address for each IP address associated with the virtual router .
static void
carp_send_arp(struct carp_softc *sc)
{
	struct ifaddr *ifa;
	struct in_addr addr;
	CARP_FOREACH_IFA(sc, ifa) {
		if (ifa->ifa_addr->sa_family != AF_INET)
			continue;
		addr = ((struct sockaddr_in *)ifa->ifa_addr)->sin_addr;
		arp_announce_ifaddr(sc->sc_carpdev, addr, LLADDR(&sc->sc_addr));
	}
}
static void carp_send_arp ( struct carp_softc * sc ) { struct ifaddr * ifa ; struct in_addr addr ; CARP_FOREACH_IFA ( sc , ifa ) { if ( ifa -> ifa_addr -> sa_family != AF_INET ) continue ; addr = ( ( struct sockaddr_in * ) ifa -> ifa_addr ) -> sin_addr ; arp_announce_ifaddr ( sc -> sc_carpdev , addr , LLADDR ( & sc -> sc_addr ) ) ; } }
Broadcast a gratuitous ARP request containing
 the virtual router MAC address for each IP address
 associated with the virtual router.
Broadcast a gratuitous ARP request containing the virtual router MAC address for each IP address associated with the virtual router .