By default, a log action will log all the known header of a given packet, which can be large depending on the L2/3/4 headers in the packet. Potentially, users only want specific information, such as the 5-tuple (addresses, ports, and protocol), which would greatly reduce the amount of data sent back to userspace.
Implement 5-tuple logging with log 5-tuple and limit the amount of data logged to the ring buffer.
By default, a
logaction will log all the known header of a given packet, which can be large depending on the L2/3/4 headers in the packet. Potentially, users only want specific information, such as the 5-tuple (addresses, ports, and protocol), which would greatly reduce the amount of data sent back to userspace.Implement 5-tuple logging with
log 5-tupleand limit the amount of data logged to the ring buffer.