Module netsim_embed::udp
source · Expand description
A UDP packet abstraction.
Structs
A structure enabling manipulation of on the wire packets
Represents a UDP Packet.
Used to iterate over a slice of
{name}PacketsA structure enabling manipulation of on the wire packets
Functions
Calculate a checksum for a packet built on IPv4.
Calculate a checksum for a packet built on IPv4. Advanced version which
accepts an extra slice of data that will be included in the checksum
as being part of the data portion of the packet.
Calculate a checksum for a packet built on IPv6.
Calculate the checksum for a packet built on IPv6. Advanced version which
accepts an extra slice of data that will be included in the checksum
as being part of the data portion of the packet.