mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-24 18:43:39 +08:00
14 lines
332 B
C
14 lines
332 B
C
|
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 */
|