aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-04-15 17:51:23 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2021-04-15 17:53:17 -0600
commita7a84a17faf784857f076e37aa4818f6b6c12a95 (patch)
tree444a516c1af3aca861706e6d7fbca922948cf7c4
parentif_wg: do not allow ioctl to race with clone_destroy (diff)
downloadwireguard-freebsd-a7a84a17faf784857f076e37aa4818f6b6c12a95.tar.xz
wireguard-freebsd-a7a84a17faf784857f076e37aa4818f6b6c12a95.zip
if_wg: set multicast flag
In order to send to ff00::/8 addresses, even over unicast, the interface needs the multicast flag enabled. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-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 742d1b1fa6ee..7dbdfda087d1 100644
--- a/src/if_wg.c
+++ b/src/if_wg.c
@@ -3098,7 +3098,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_NOARP;
+ ifp->if_flags = IFF_NOARP | IFF_MULTICAST;
ifp->if_init = wg_init;
ifp->if_reassign = wg_reassign;
ifp->if_qflush = wg_qflush;