diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-06-25 01:03:23 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-06-25 01:03:23 +0200 |
commit | 9ac7f3588dda7d175e04878e7b871a88306d13bf (patch) | |
tree | 00846bf23da618f6fb43da1b24c8b877dd6df60f /src/compat.h | |
parent | fc5e06a19c090d98620a735e33b57aee7c43107d (diff) | |
download | fastd-9ac7f3588dda7d175e04878e7b871a88306d13bf.tar fastd-9ac7f3588dda7d175e04878e7b871a88306d13bf.zip |
Don't depend on net/if_ether.h
Instead of adding compatiblity code to make this work with musl, just duplicate
the needed definitions in fastd.
Diffstat (limited to 'src/compat.h')
-rw-r--r-- | src/compat.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/compat.h b/src/compat.h index 991c268..29c9253 100644 --- a/src/compat.h +++ b/src/compat.h @@ -39,32 +39,10 @@ #include <unistd.h> #include <sys/types.h> -#include <sys/queue.h> #include <sys/socket.h> -#include <net/if.h> -#include <net/if_arp.h> #include <netinet/in.h> -#include <netinet/if_ether.h> -#ifndef ETH_ALEN -/** The length of a MAC address */ -#define ETH_ALEN 6 -#endif - -#ifndef ETH_HLEN -/** The length of the standard ethernet header */ -#define ETH_HLEN 14 -#endif - -#ifndef HAVE_ETHHDR -/** An ethernet header */ -struct ethhdr { - uint8_t h_dest[ETH_ALEN]; /**< The destination MAC address field */ - uint8_t h_source[ETH_ALEN]; /**< The source MAC address field */ - uint16_t h_proto; /**< The EtherType/length field */ -} __attribute__((packed)); -#endif #if defined(USE_FREEBIND) && !defined(IP_FREEBIND) /** Compatiblity define for systems supporting, but not defining IP_FREEBIND */ |