Date: Sat, 15 Dec 2007 04:25:39 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 130935 for review Message-ID: <200712150425.lBF4PdCA014942@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=130935 Change 130935 by kmacy@kmacy:storage:toestack on 2007/12/15 04:24:38 move arp notification handler further up so that it is always called for a reply Affected files ... .. //depot/projects/toestack/sys/netinet/if_ether.c#15 edit Differences ... ==== //depot/projects/toestack/sys/netinet/if_ether.c#15 (text+ko) ==== @@ -36,7 +36,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/netinet/if_ether.c,v 1.165 2007/12/04 13:01:12 yar Exp $"); +__FBSDID("$FreeBSD: src/sys/netinet/if_ether.c,v 1.166 2007/12/12 20:53:24 kmacy Exp $"); #include "opt_inet.h" #include "opt_mac.h" @@ -674,6 +674,11 @@ rt = arplookup(isaddr.s_addr, itaddr.s_addr == myaddr.s_addr, 0); if (rt != NULL) { la = (struct llinfo_arp *)rt->rt_llinfo; + + sin.sin_addr.s_addr = isaddr.s_addr; + EVENTHANDLER_INVOKE(route_event, RTEVENT_ARP_UPDATE, rt, NULL, + (struct sockaddr *)&sin); + if (la == NULL) { RT_UNLOCK(rt); goto reply; @@ -781,9 +786,6 @@ la->la_preempt = arp_maxtries; hold = la->la_hold; la->la_hold = NULL; - - sin.sin_addr.s_addr = be32toh(itaddr.s_addr); - EVENTHANDLER_INVOKE(route_event, RTEVENT_ARP_UPDATE, rt, NULL, (struct sockaddr *)&sin); RT_UNLOCK(rt); if (hold != NULL) (*ifp->if_output)(ifp, hold, rt_key(rt), rt);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712150425.lBF4PdCA014942>