kmalloc: Avoid code duplication.
[dragonfly.git] / contrib / tcpdump / ipnet.h
blobae692842e3b8b4957a0e93cf37e5b1778c88a58e
1 typedef struct ipnet_hdr {
2 uint8_t iph_version;
3 uint8_t iph_family;
4 uint16_t iph_htype;
5 uint32_t iph_pktlen;
6 uint32_t iph_ifindex;
7 uint32_t iph_grifindex;
8 uint32_t iph_zsrc;
9 uint32_t iph_zdst;
10 } ipnet_hdr_t;
12 #define IPH_AF_INET 2 /* Matches Solaris's AF_INET */
13 #define IPH_AF_INET6 26 /* Matches Solaris's AF_INET6 */