pub fn create_rx_socket(
if_index: u32,
if_queue: u32,
config: Option<XdpConfig>,
) -> Result<RxSocket, Error>Expand description
Creates an RxSocket for receiving packets.
This is a convenience wrapper around create_socket for receive-only use cases.
§Arguments
if_index- The index of the network interface to use.if_queue- The queue ID of the network interface to use.config- OptionalXdpConfigto customize the socket.
§Returns
A Result containing an RxSocket on success, or an io::Error on failure.