pub fn open_packet_socket(ifindex: i32, protocol: u16) -> Result<OwnedFd>
Create an AF_PACKET + SOCK_DGRAM socket bound to ifindex, filtering only frames with ethertype protocol. Returns a non-blocking OwnedFd.
AF_PACKET + SOCK_DGRAM
ifindex
protocol
OwnedFd