summaryrefslogtreecommitdiff
path: root/eth-multiplexer/vdev.c
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-11-05 18:26:39 +0100
committerJustus Winter <justus@gnupg.org>2016-11-05 18:26:39 +0100
commit115695afe34e5253816ff0e828054f8c07e2ddbd (patch)
treee31d01c464d57be8240be49ede0192a924b9242c /eth-multiplexer/vdev.c
parentfd3b0bc1b318a2cc95ac1f85e308708c4bb8999a (diff)
eth-multiplexer: Avoid local definitions.
* eth-multiplexer/util.h: Include 'net/if_ether.h'. (ETH_ALEN): Drop. (struct ethhdr): Likewise. * eth-multiplexer/vdev.c: Include 'net/if_ether.h'. (ETH_HLEN): Drop.
Diffstat (limited to 'eth-multiplexer/vdev.c')
-rw-r--r--eth-multiplexer/vdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth-multiplexer/vdev.c b/eth-multiplexer/vdev.c
index a526bd2a..e753b85f 100644
--- a/eth-multiplexer/vdev.c
+++ b/eth-multiplexer/vdev.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <stdio.h>
+#include <net/if_ether.h>
#include <netinet/ip.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@@ -35,7 +36,6 @@
#include "bpf_impl.h"
#include "util.h"
-#define ETH_HLEN sizeof (struct ethhdr)
static struct vether_device *dev_head;
static int dev_num;