IGMP ipinfo_t Structure

The ipinfo_t structure contains common IP info 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;

The following list describes the IGMP ipinfo_t members:

ip_ver

IP version number. Currently either 4 or 6. For IGMP, the version number is 4 since it is an IPv4-only protocol.

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.

ip_daddr

Destination IP address, as a string. For IPv4 this is a dotted decimal quad.