diff options
Diffstat (limited to 'sys/dev/an')
-rw-r--r-- | sys/dev/an/if_an.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/an/if_an.c b/sys/dev/an/if_an.c index 37b4c59..c058706 100644 --- a/sys/dev/an/if_an.c +++ b/sys/dev/an/if_an.c @@ -1968,11 +1968,13 @@ an_start(ifp) if (!sc->an_associated) return; + /* We can't send in monitor mode so toss any attempts. */ if (sc->an_monitor && (ifp->if_flags & IFF_PROMISC)) { for (;;) { IF_DEQUEUE(&ifp->if_snd, m0); if (m0 == NULL) break; + m_freem(m0); } return; } |