Expand description
Crate providing utilities for coercing between types of sockaddr structs.
Structs§
- Ethernet
Sockaddr - Socket address for an Ethernet packet socket.
- Pure
IpSockaddr - Socket address for a Pure IP packet socket.
Traits§
- Into
Sock Addr - Socket addresses that can be converted to
socket2::SockAddr
. - TryTo
Sockaddr Ll - 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
.