PERFORCE change 112777 for review

Marko Zec zec at FreeBSD.org
Thu Jan 11 09:35:09 PST 2007


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

Change 112777 by zec at zec_tca51 on 2007/01/11 17:34:05

	curvnet must be set when sending packets through bpf.

Affected files ...

.. //depot/projects/vimage/src/sys/net/bpf.c#5 edit

Differences ...

==== //depot/projects/vimage/src/sys/net/bpf.c#5 (text+ko) ====

@@ -641,7 +641,9 @@
 	BPFD_UNLOCK(d);
 #endif
 	NET_LOCK_GIANT();
+	CURVNETB_SET(ifp->if_vnetb);
 	error = (*ifp->if_output)(ifp, m, &dst, NULL);
+	CURVNETB_RESTORE();
 	NET_UNLOCK_GIANT();
 	/*
 	 * The driver frees the mbuf.


More information about the p4-projects mailing list