Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jan 2007 17:35:08 GMT
From:      Marko Zec <zec@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 112777 for review
Message-ID:  <200701111735.l0BHZ8EQ021784@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=112777

Change 112777 by zec@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701111735.l0BHZ8EQ021784>