udpsinfo_t Structure

The udpinfo_t structure is a DTrace translated version of the UDP header.

typedef struct udpinfo {
	uint16_t udp_sport;             /* source port */
	uint16_t udp_dport;             /* destination port */
	uint16_t udp_length;            /* total length */
	uint16_t udp_checksum;          /* headers + data checksum */
	udpha_t *udp_hdr;               /* raw UDP header */
} udpinfo_t;

Table 11-77 udpinfo_t Members

Member Description

udp_sport

UDP source port.

udp_dport

UDP destination port.

udp_length

Payload length in bytes.

udp_checksum

Checksum of UDP header and payload.

udp_hdr

Pointer to raw UDP header at time of tracing.

See RFC 768 for a detailed explanation of the standard UDP header fields and flags.