Function af_packet::rx::get_rx_statistics[][src]

pub fn get_rx_statistics(fd: i32) -> Result<TpacketStatsV3, Error>

This is very easy because the Linux kernel has its own counters that are reset every time getsockopt() is called