summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/headers.h12
-rw-r--r--include/proto.h4
2 files changed, 16 insertions, 0 deletions
diff --git a/include/headers.h b/include/headers.h
index 3d564deb..759f93bf 100644
--- a/include/headers.h
+++ b/include/headers.h
@@ -78,6 +78,18 @@ struct sctphdr {
uint32_t checksum;
};
+struct arp_hdr {
+ uint16_t htype;
+ uint16_t ptype;
+ uint8_t hlen;
+ uint8_t plen;
+ uint16_t oper;
+ uint8_t sha[6];
+ uint32_t spa;
+ uint8_t tha[6];
+ uint32_t tpa;
+} __attribute__((__packed__));
+
struct ipv6hdr {
uint8_t version:4,
priority:4;
diff --git a/include/proto.h b/include/proto.h
index 99c57a79..92b25edb 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -182,6 +182,10 @@ enum arp_hdr_fields {
ARPHDR_HLN,
ARPHDR_PLN,
ARPHDR_OP,
+ ARPHDR_SADDR_ETHER,
+ ARPHDR_DADDR_ETHER,
+ ARPHDR_SADDR_IP,
+ ARPHDR_DADDR_IP,
};
enum ip_hdr_fields {