mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Honor the IFF_MONITOR flag.
PR: kern/99500 Submitted by: Craig Leres <leres ee.lbl.gov> Approved by: re (kensmith)
This commit is contained in:
parent
564aab1fe6
commit
bb5ba44f82
1 changed files with 6 additions and 0 deletions
|
|
@ -234,6 +234,12 @@ ng_eiface_start2(node_p node, hook_p hook, void *arg1, int arg2)
|
|||
*/
|
||||
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
|
||||
* freed.
|
||||
|
|
|
|||
Loading…
Reference in a new issue