diff options
Diffstat (limited to 'contrib/tcpdump/ipnet.h')
-rw-r--r-- | contrib/tcpdump/ipnet.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/tcpdump/ipnet.h b/contrib/tcpdump/ipnet.h new file mode 100644 index 0000000..ae69284 --- /dev/null +++ b/contrib/tcpdump/ipnet.h @@ -0,0 +1,13 @@ +typedef struct ipnet_hdr { + uint8_t iph_version; + uint8_t iph_family; + uint16_t iph_htype; + uint32_t iph_pktlen; + uint32_t iph_ifindex; + uint32_t iph_grifindex; + uint32_t iph_zsrc; + uint32_t iph_zdst; +} ipnet_hdr_t; + +#define IPH_AF_INET 2 /* Matches Solaris's AF_INET */ +#define IPH_AF_INET6 26 /* Matches Solaris's AF_INET6 */ |