summaryrefslogtreecommitdiffstats
path: root/src/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compat.h')
-rw-r--r--src/compat.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/compat.h b/src/compat.h
index e127dba..6afcbad 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -27,6 +27,11 @@
#ifndef _FASTD_COMPAT_H_
#define _FASTD_COMPAT_H_
+#include <config.h>
+
+#include <stdint.h>
+
+
#ifndef ETH_ALEN
#define ETH_ALEN 6
#endif
@@ -35,4 +40,12 @@
#define ETH_HLEN 14
#endif
+#ifndef HAVE_ETHHDR
+struct ethhdr {
+ uint8_t h_dest[ETH_ALEN];
+ uint8_t h_source[ETH_ALEN];
+ uint16_t h_proto;
+} __attribute__((packed));
+#endif
+
#endif /* _FASTD_COMPAT_H_ */