Crate sockaddr

Source
Expand description

Crate providing utilities for coercing between types of sockaddr structs.

Structs§

EthernetSockaddr
Socket address for an Ethernet packet socket.
PureIpSockaddr
Socket address for a Pure IP packet socket.

Traits§

IntoSockAddr
Socket addresses that can be converted to socket2::SockAddr.
TryToSockaddrLl
Socket addresses that can be converted to libc::sockaddr_ll.

Functions§

sockaddr_ll_ip_protocol
Returns the protocol, in network byte order, for the given IpVersion.