Bases: Parser, list

Reads the /proc/net/netfilter/nfnetlink_queue file and creates a list of dictionaries, one dictionary per row in the file.

The keys of the dictionary are (see

  • queue_number

  • peer_portid: good chance it is process ID of software listening to the queue

  • queue_total: current number of packets waiting in the queue

  • copy_mode: 0 and 1 only message only provide meta data. If 2, the message provides a part of packet of size copy range.

  • copy_range: length of packet data to put in message

  • queue_dropped: number of packets dropped because queue was full

  • user_dropped: number of packets dropped because netlink message could not be sent to userspace. If this counter is not zero, try to increase netlink buffer size. On the application side, you will see gap in packet id if netlink message are lost.

  • id_sequence: packet id of last packet

  • The last field is always ‘1’ and is ignored.

Example Input:

0  -4423     0 2 65535     0     0       22  1
1  -4424     0 2 65535     0     0       27  1


>>> type(nf)
<class 'insights.parsers.nfnetlink_queue.NfnetLinkQueue'>
>>> 'copy_mode' in[0]

Set data as property to keep compatibility

This method must be implemented by classes based on this class.