Struct nix::sys::socket::LinkAddr [−][src]
pub struct LinkAddr(pub sockaddr_ll);
Hardware Address
Implementations
impl LinkAddr[src]
impl LinkAddr[src]pub fn family(&self) -> AddressFamily[src]
Always AF_PACKET
pub fn protocol(&self) -> u16[src]
Physical-layer protocol
pub fn ifindex(&self) -> usize[src]
Interface number
pub fn hatype(&self) -> u16[src]
ARP hardware type
pub fn pkttype(&self) -> u8[src]
Packet type
pub fn halen(&self) -> usize[src]
Length of MAC address
pub fn addr(&self) -> [u8; 6][src]
Physical-layer address (MAC)