From 96a3f7f401698c144065da24c36791560862001f Mon Sep 17 00:00:00 2001 From: cihangir Date: Sun, 28 Jul 2024 11:27:18 +0300 Subject: [PATCH] wg: change dhost to something other than a broadcast address Signed-off-by: cihangir --- sys/dev/wg/if_wg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/wg/if_wg.c b/sys/dev/wg/if_wg.c index b0ad94e284f..8360840512b 100644 --- a/sys/dev/wg/if_wg.c +++ b/sys/dev/wg/if_wg.c @@ -1692,7 +1692,7 @@ wg_deliver_netmap(if_t ifp, struct mbuf *m, int af) eh->ether_type = af == AF_INET ? htons(ETHERTYPE_IP) : htons(ETHERTYPE_IPV6); memcpy(eh->ether_shost, "\x02\x02\x02\x02\x02\x02", ETHER_ADDR_LEN); - memcpy(eh->ether_dhost, "\xff\xff\xff\xff\xff\xff", ETHER_ADDR_LEN); + memcpy(eh->ether_dhost, "\x06\x06\x06\x06\x06\x06", ETHER_ADDR_LEN); if_input(ifp, m); } #endif @@ -2316,7 +2316,7 @@ wg_xmit_netmap(if_t ifp, struct mbuf *m, int af) eh->ether_type = af == AF_INET ? htons(ETHERTYPE_IP) : htons(ETHERTYPE_IPV6); memcpy(eh->ether_shost, "\x06\x06\x06\x06\x06\x06", ETHER_ADDR_LEN); - memcpy(eh->ether_dhost, "\xff\xff\xff\xff\xff\xff", ETHER_ADDR_LEN); + memcpy(eh->ether_dhost, "\x02\x02\x02\x02\x02\x02", ETHER_ADDR_LEN); return (if_transmit(ifp, m)); } #endif /* DEV_NETMAP */