aboutsummaryrefslogtreecommitdiffstats
path: root/src/if_wg.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-03-19 10:42:18 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2021-03-19 10:46:49 -0600
commitbb59a61785322a086dfc437c51e7cbcd918a5241 (patch)
tree38825b525d1ba60432f982a8a1854531b9b7982e /src/if_wg.c
parentif_wg: dispatch packets using netisr (diff)
downloadwireguard-freebsd-bb59a61785322a086dfc437c51e7cbcd918a5241.tar.xz
wireguard-freebsd-bb59a61785322a086dfc437c51e7cbcd918a5241.zip
if_wg: mark as point to point
It's technically point to multipoint. Also, clear the multicast and broadcast flags. This _could_ cause problems, but hopefully not. This should fix issues with receiving incoming connections. Reported-by: Ashish <ashish.is@lostca.se> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/if_wg.c')
-rw-r--r--src/if_wg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/if_wg.c b/src/if_wg.c
index b7911aa..3e9cd8c 100644
--- a/src/if_wg.c
+++ b/src/if_wg.c
@@ -3243,7 +3243,7 @@ wg_clone_create(struct if_clone *ifc, int unit, caddr_t params)
wg_aip_init(&sc->sc_aips);
if_setmtu(ifp, ETHERMTU - 80);
- ifp->if_flags = IFF_BROADCAST | IFF_MULTICAST | IFF_NOARP;
+ ifp->if_flags = IFF_POINTOPOINT | IFF_NOARP;
ifp->if_init = wg_init;
ifp->if_reassign = wg_reassign;
ifp->if_qflush = wg_qflush;