ICMP csinfo_t Structure

The csinfo_t structure is where connection state info is made available. It contains a unique (system-wide) connection ID, and the process ID and zone ID associated with the connection. For ICMP, the connection information is populated for ICMP errors received, which are sent to a specific connection. Other ICMP data received such as ICMP echo requests/replies is not directed to a specific connection, so the connection ID is 0. For outbound ICMP data, the pid and zoneid are specified but the connection ID (cid) is 0.

typedef struct csinfo {
        uintptr_t cs_addr;
        uint64_t cs_cid;
        pid_t cs_pid;
        zoneid_t cs_zoneid;
 } csinfo_t;

The following list describes the csinfo_t members:

cs_addr

Address of translated ip_xmit_attr_t *.

cs_cid

Connection ID. A unique per-connection identifier, which identifies the connection during its lifetime.

cs_pid

Process ID associated with the connection.

cs_zoneid

Zone ID associated with the connection.