diff options
| author | Michael Tuexen <tuexen@FreeBSD.org> | 2023-11-09 10:43:54 +0000 |
|---|---|---|
| committer | Michael Tuexen <tuexen@FreeBSD.org> | 2023-11-09 10:43:54 +0000 |
| commit | 44669b76504991ef3ac10ef10bc0fa931ae79c45 (patch) | |
| tree | 24c25127ded7d4c2d9bf913236fdd3649c0bc1de /sys | |
| parent | ff69d13a50d1d07601de0885fd94f6a09a7ba383 (diff) | |
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/net/if_tuntap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_tuntap.c b/sys/net/if_tuntap.c index 30d1d84b2f59..8881bbaec070 100644 --- a/sys/net/if_tuntap.c +++ b/sys/net/if_tuntap.c @@ -1779,7 +1779,7 @@ tunwrite_l2(struct tuntap_softc *tp, struct mbuf *m, eh = mtod(m, struct ether_header *); - if (eh && (ifp->if_flags & IFF_PROMISC) == 0 && + if ((ifp->if_flags & IFF_PROMISC) == 0 && !ETHER_IS_MULTICAST(eh->ether_dhost) && bcmp(eh->ether_dhost, IF_LLADDR(ifp), ETHER_ADDR_LEN) != 0) { m_freem(m); |
