aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/device.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-11-16 05:27:44 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-11-16 05:27:44 +0100
commit0311d78316a0544b35705468de1021ff48335142 (patch)
treed7e919ea019291644ca94d1d4ad3735472967285 /src/device.c
parentpackets: consolidate constants (diff)
downloadwireguard-monolithic-historical-0311d78316a0544b35705468de1021ff48335142.tar.xz
wireguard-monolithic-historical-0311d78316a0544b35705468de1021ff48335142.zip
device: we need NONE for libpcap
This makes addrconf add a temporary IPv6 address, which is annoying, and currently there's not a work around for this.
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c
index bedf602..252ca05 100644
--- a/src/device.c
+++ b/src/device.c
@@ -229,8 +229,8 @@ static void setup(struct net_device *dev)
dev->addr_len = 0;
dev->needed_headroom = DATA_PACKET_HEAD_ROOM;
dev->needed_tailroom = noise_encrypted_len(MESSAGE_PADDING_MULTIPLE);
- dev->type = ARPHRD_VOID; /* Virtually the same as ARPHRD_NONE, except doesn't get IP6 auto config. */
- dev->flags = IFF_POINTOPOINT | IFF_NOARP | IFF_MULTICAST;
+ dev->type = ARPHRD_NONE; /* Virtually the same as ARPHRD_NONE, except doesn't get IP6 auto config. */
+ dev->flags = IFF_POINTOPOINT | IFF_NOARP;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0)
dev->flags |= IFF_NO_QUEUE;
#else