diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-11-16 05:27:44 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-11-16 05:27:44 +0100 |
commit | 09589ebbb1001edc8be52c45545a70ccd5d4eba6 (patch) | |
tree | 7e3320e23ccda5071f16231135e80ed9e069f24e /src | |
parent | 95e81892c9b4d069bf7d064ed8a644e92e751abb (diff) |
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.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/device.c | 4 |
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 |