Date: Sun, 5 Aug 2007 16:06:38 GMT From: Marko Zec <zec@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 124731 for review Message-ID: <200708051606.l75G6cWT017471@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=124731 Change 124731 by zec@zec_tpx32 on 2007/08/05 16:06:10 Print the "Ethernet address: x.x.x.x.x" message on the console only the first time the ifnet is attached, not each time it moves from one vnet to another. Affected files ... .. //depot/projects/vimage/src/sys/net/if_ethersubr.c#14 edit Differences ... ==== //depot/projects/vimage/src/sys/net/if_ethersubr.c#14 (text+ko) ==== @@ -909,6 +909,9 @@ int i; struct ifaddr *ifa; struct sockaddr_dl *sdl; +#ifdef VIMAGE + struct vnet *home_vnet_0 = ifp->if_home_vnet; +#endif ifp->if_addrlen = ETHER_ADDR_LEN; ifp->if_hdrlen = ETHER_HDR_LEN; @@ -936,7 +939,11 @@ for (i = 0; i < ifp->if_addrlen; i++) if (lla[i] != 0) break; +#ifdef VIMAGE + if (i != ifp->if_addrlen && home_vnet_0 != ifp->if_home_vnet) +#else if (i != ifp->if_addrlen) +#endif if_printf(ifp, "Ethernet address: %6D\n", lla, ":"); if (ifp->if_flags & IFF_NEEDSGIANT) if_printf(ifp, "if_start running deferred for Giant\n");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708051606.l75G6cWT017471>