Module addr

Module addr 

Source

Structs§

ArpHrd
Arp Hardware Type (ArpHrd)
EtherType
physical layer protocol (Ethertype)
Inet4Addr
An IPv4 socket address
Inet6Addr
An IPv6 socket address
Ipv4Addr
An IPv4 address.
Ipv6Addr
An IPv6 address.
LinkAddr
Hardware Address
PacketType
UnixAddr
A wrapper around sockaddr_un.

Constants§

ALL_NODES
ALL_ROUTERS
UNSPECIFIED4
UNSPECIFIED6

Traits§

NetAddrExt
ToNetAddr
Converts the socket address to a NetAddr.
WithPort
Takes an address, gives it a port, and makes a NetAddr.

Functions§

linkaddr_for_ifindex
new_linkaddr
nix doesn’t provide a safe way to construct LinkAddrs, so we provide our own.
to_net_addr
tokio_to_unixaddr

Type Aliases§

IfIndex

Unions§

NetAddr
A container for any sockaddr type