From bb59a61785322a086dfc437c51e7cbcd918a5241 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 19 Mar 2021 10:42:18 -0600 Subject: 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 Signed-off-by: Jason A. Donenfeld --- src/if_wg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/if_wg.c') 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; -- cgit v1.2.3-59-g8ed1b