From owner-p4-projects@FreeBSD.ORG Wed Oct 31 20:00:23 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 1AEB916A480; Wed, 31 Oct 2007 20:00:23 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD55C16A477 for ; Wed, 31 Oct 2007 20:00:22 +0000 (UTC) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id ABB3B13C4C3 for ; Wed, 31 Oct 2007 20:00:22 +0000 (UTC) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l9VK0MZJ019513 for ; Wed, 31 Oct 2007 20:00:22 GMT (envelope-from kmacy@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l9VK0MnY019510 for perforce@freebsd.org; Wed, 31 Oct 2007 20:00:22 GMT (envelope-from kmacy@freebsd.org) Date: Wed, 31 Oct 2007 20:00:22 GMT Message-Id: <200710312000.l9VK0MnY019510@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to kmacy@freebsd.org using -f From: Kip Macy To: Perforce Change Reviews Cc: Subject: PERFORCE change 128428 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2007 20:00:23 -0000 http://perforce.freebsd.org/chv.cgi?CH=128428 Change 128428 by kmacy@kmacy:storage:toestack on 2007/10/31 19:59:40 move notification for arp updates into in_arpinput Affected files ... .. //depot/projects/toestack/sys/netinet/if_ether.c#10 edit Differences ... ==== //depot/projects/toestack/sys/netinet/if_ether.c#10 (text+ko) ==== @@ -415,7 +415,6 @@ sdl->sdl_family == AF_LINK && sdl->sdl_alen != 0) { bcopy(LLADDR(sdl), desten, sdl->sdl_alen); - EVENTHANDLER_INVOKE(route_event, RTEVENT_ARP_UPDATE, rt, NULL); /* * If entry has an expiry time and it is approaching, @@ -735,6 +734,7 @@ } (void)memcpy(LLADDR(sdl), ar_sha(ah), sdl->sdl_alen = ah->ar_hln); + /* * If we receive an arp from a token-ring station over * a token-ring nic then try to save the source @@ -777,6 +777,7 @@ la->la_preempt = arp_maxtries; hold = la->la_hold; la->la_hold = NULL; + EVENTHANDLER_INVOKE(route_event, RTEVENT_ARP_UPDATE, rt, NULL); RT_UNLOCK(rt); if (hold != NULL) (*ifp->if_output)(ifp, hold, rt_key(rt), rt);