Sniffer10G version 2.x has this function:
int snf_ring_recv_qinfo(snf_ring_t ring, struct snf_ring_qinfo *)'
with the structure as defined below.
/** Queue consumption information **/ struct snf_ring_qinfo { uintptr_t q_avail; /**< Amount of data available not yet received (approximate) */ uintptr_t q_borrowed; /**< Amount of data currently borrowed (exact) */ uintptr_t q_free; /**< Amount of free space still available (approximate) */ };
All these values are in bytes.
Also read: