FreeBSD Bugzilla – Attachment 67548 Details for
Bug 99500
[netgraph] [patch] netgraph doesn't honor the monitor interface flag
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 898 bytes, created by
Craig Leres
on 2006-06-26 23:30:26 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Craig Leres
Created:
2006-06-26 23:30:26 UTC
Size:
898 bytes
patch
obsolete
>diff -c -r1.1 netgraph/ng_eiface.c >*** netgraph/ng_eiface.c 2006/06/26 21:56:36 1.1 >--- netgraph/ng_eiface.c 2006/06/26 22:14:40 >*************** >*** 25,31 **** > * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > * SUCH DAMAGE. > * >! * $FreeBSD: src/sys/netgraph/ng_eiface.c,v 1.32.2.4 2006/02/14 06:21:47 ru Exp $ > */ > > #include <sys/param.h> >--- 25,31 ---- > * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > * SUCH DAMAGE. > * >! * $FreeBSD: src/sys/netgraph/ng_eiface.c,v 1.32.2.4+ 2006/02/14 06:21:47 ru Exp $ > */ > > #include <sys/param.h> >*************** >*** 233,238 **** >--- 233,244 ---- > * XXX is this safe? locking? > */ > BPF_MTAP(ifp, m); >+ >+ if (ifp->if_flags & IFF_MONITOR) { >+ ifp->if_ipackets++; >+ m_freem(m); >+ continue; >+ } > > /* > * Send packet; if hook is not connected, mbuf will get
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 99500
: 67548