tun: freebsd: set IFF_MULTICAST for routing daemons

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2021-04-18 20:09:04 -06:00
parent 3988821442
commit b0e5b19969

View file

@ -293,7 +293,7 @@ func CreateTUN(name string, mtu int) (Device, error) {
}
// Get out of PPP mode.
ifflags := syscall.IFF_BROADCAST
ifflags := syscall.IFF_BROADCAST | syscall.IFF_MULTICAST
tun.operateOnFd(func(fd uintptr) {
_, _, errno = unix.Syscall(
unix.SYS_IOCTL,