Date: Fri, 30 Nov 2007 22:35:36 GMT From: Marko Zec <zec@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 129845 for review Message-ID: <200711302235.lAUMZatm021960@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=129845 Change 129845 by zec@zec_tpx32 on 2007/11/30 22:35:21 Push if_vnet field more towards the bottom of struct ifnet so that "netstat -in" can produce sane output again, the joys of /dev/kmem access to kernel state. Affected files ... .. //depot/projects/vimage/src/sys/net/if_var.h#11 edit Differences ... ==== //depot/projects/vimage/src/sys/net/if_var.h#11 (text+ko) ==== @@ -70,6 +70,7 @@ struct ether_header; struct carp_if; struct ifvlantrunk; +struct vnet; #endif #include <sys/queue.h> /* get TAILQ macros */ @@ -130,7 +131,6 @@ * field is deprecated. Use if_addr or ifaddr_byindex() instead. */ struct knlist if_klist; /* events attached to this if */ - struct vnet *if_vnet; /* network stack instance */ int if_pcount; /* number of promiscuous listeners */ struct carp_if *if_carp; /* carp interface structure */ struct bpf_if *if_bpf; /* packet filter structure */ @@ -163,6 +163,7 @@ (struct ifnet *, struct sockaddr **, struct sockaddr *); void (*if_reassign) /* reassign to vnet routine */ (struct ifnet *, struct vnet *, char *); + struct vnet *if_vnet; /* network stack instance */ struct vnet *if_home_vnet; /* where this ifnet originates from */ struct ifaddr *if_addr; /* pointer to link-level address */ void *if_spare2; /* spare pointer 2 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711302235.lAUMZatm021960>