summaryrefslogtreecommitdiff
path: root/sys/net/debugnet.c
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2019-10-17 17:48:32 +0000
committerConrad Meyer <cem@FreeBSD.org>2019-10-17 17:48:32 +0000
commit6d567ec2dae2287f3bfb6ba55ccaf0f3a552ee5c (patch)
tree296a47010b28d4a60ae84317114837720e978fc6 /sys/net/debugnet.c
parentd39756c1420b3f8ba6edcc60620939f3577126d2 (diff)
Notes
Diffstat (limited to 'sys/net/debugnet.c')
-rw-r--r--sys/net/debugnet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/debugnet.c b/sys/net/debugnet.c
index 741e3156372f..9c3803938d81 100644
--- a/sys/net/debugnet.c
+++ b/sys/net/debugnet.c
@@ -434,7 +434,8 @@ debugnet_pkt_in(struct ifnet *ifp, struct mbuf *m)
goto done;
}
if (memcmp(ifr.ifr_addr.sa_data, eh->ether_dhost,
- ETHER_ADDR_LEN) != 0) {
+ ETHER_ADDR_LEN) != 0 &&
+ (etype != ETHERTYPE_ARP || !ETHER_IS_BROADCAST(eh->ether_dhost))) {
DNETDEBUG_IF(ifp,
"discard frame with incorrect destination addr\n");
goto done;