mirror of
https://github.com/KusakabeShi/EtherGuard-VPN.git
synced 2025-08-21 14:26:26 +02:00
tun: freebsd: set IFF_MULTICAST for routing daemons
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
@@ -293,7 +293,7 @@ func CreateTUN(name string, mtu int) (Device, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get out of PPP mode.
|
// Get out of PPP mode.
|
||||||
ifflags := syscall.IFF_BROADCAST
|
ifflags := syscall.IFF_BROADCAST | syscall.IFF_MULTICAST
|
||||||
tun.operateOnFd(func(fd uintptr) {
|
tun.operateOnFd(func(fd uintptr) {
|
||||||
_, _, errno = unix.Syscall(
|
_, _, errno = unix.Syscall(
|
||||||
unix.SYS_IOCTL,
|
unix.SYS_IOCTL,
|
||||||
|
Reference in New Issue
Block a user