Module pnet::util
[−]
[src]
Miscellaneous utilities for low level networking
Structs
MacAddr |
A MAC address |
Enums
ParseMacAddrErr |
Represents an error which occurred whilst parsing a MAC address |
Traits
Octets |
Convert value to byte array |
Functions
checksum |
Calculates a checksum. Used by ipv4 and icmp. The two bytes starting at |
get_network_interfaces |
[Deprecated] Get a list of available network interfaces for the current machine.
Deprecated. Instead use the implementation available for your backend.
The default one is at |
ipv4_checksum |
Calculate the checksum for a packet built on IPv4. Used by udp and tcp. |
ipv6_checksum |
Calculate the checksum for a packet built on IPv6 |