diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-03-19 10:42:18 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-03-19 10:46:49 -0600 |
commit | bb59a61785322a086dfc437c51e7cbcd918a5241 (patch) | |
tree | 38825b525d1ba60432f982a8a1854531b9b7982e /src | |
parent | if_wg: dispatch packets using netisr (diff) | |
download | wireguard-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 '')
-rw-r--r-- | src/if_wg.c | 2 |
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; |