ipinfo_t
Structure
The ipinfo_t
structure contains common IP information for both IPv4 and IPv6.
typedef struct ipinfo { uint8_t ip_ver; /* IP version (4, 6) */ uint16_t ip_plength; /* payload length */ string ip_saddr; /* source address */ string ip_daddr; /* destination address */ } ipinfo_t;
Table 11-50 ipinfo_t
Members
Member | Description |
---|---|
|
IP version number. Currently either 4 or 6. |
|
Payload length in bytes. This is the length of the packet at the time of tracing, excluding the IP header. |
|
Source IP address, as a string. For IPv4 this is a dotted decimal quad, IPv6 follows RFC 1884 convention 2 with lower case hexadecimal digits. |
|
Destination IP address, as a string. For IPv4 this is a dotted decimal quad, IPv6 follows RFC 1884 convention 2 with lower case hexadecimal digits. |