aboutgitcodebugslistschat
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/util.h b/util.h
index 7bf0701..17f5ae0 100644
--- a/util.h
+++ b/util.h
@@ -17,6 +17,7 @@
#include <arpa/inet.h>
#include <unistd.h>
#include <sys/syscall.h>
+#include <net/ethernet.h>
#include "log.h"
@@ -152,6 +153,8 @@ void abort_with_msg(const char *fmt, ...)
#define ntohll(x) (be64toh((x)))
#define htonll(x) (htobe64((x)))
+extern uint8_t eth_pad[ETH_ZLEN];
+
/**
* ntohl_unaligned() - Read 32-bit BE value from a possibly unaligned address
* @p: Pointer to the BE value in memory