aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-11-03 15:29:49 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-11-03 15:29:49 +0100
commit9f0db72ffcae21a2c6e965f084873a64fea82958 (patch)
treed0f7353e5872e7ea6dc48cd911b7a943a40045e4 /src
parentqemu: newer default kernel (diff)
downloadwireguard-monolithic-historical-9f0db72ffcae21a2c6e965f084873a64fea82958.tar.xz
wireguard-monolithic-historical-9f0db72ffcae21a2c6e965f084873a64fea82958.zip
device: use ARPHDR_VOID instead of ARPHDR_NONE
These amount to the same exact thing, except that IPv6 auto configuration won't assign it a (useless) random address and add multicast routes.
Diffstat (limited to 'src')
-rw-r--r--src/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index d364154..dad5521 100644
--- a/src/device.c
+++ b/src/device.c
@@ -234,7 +234,7 @@ 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_NONE;
+ 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;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0)
dev->flags |= IFF_NO_QUEUE;