mirror of
git://git.zx2c4.com/wireguard-freebsd
synced 2024-09-29 05:49:44 +02:00
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>
This commit is contained in:
parent
ea256bde03
commit
bb59a61785
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user