PERFORCE change 129845 for review

Marko Zec zec at FreeBSD.org
Fri Nov 30 14:35:38 PST 2007


http://perforce.freebsd.org/chv.cgi?CH=129845

Change 129845 by zec at 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 */


More information about the p4-projects mailing list