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-62 ipinfo_t Members

Member Description

ip_ver

IP version number. Currently either 4 or 6.

ip_plength

Payload length in bytes. This is the length of the packet at the time of tracing, excluding the IP header.

ip_saddr

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.

ip_daddr

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.