-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Description
When using pcap and a ring buffer for receiving packets, it can be useful to specify the snapshot length and the buffer size when receiving packets. For example, if you know that you'll only want to be processing small packets, then it could be worth setting the snapshot length to be a small value. This has a benefit on systems where libpcap uses TPACKET_V2
, where the number of packets that can fit in the ring buffer depends on the size of the ring buffer and the snapshot length; smaller snapshot lengths means more packets can fit there.
Similarly, if you know you might want to handle large packets, then having an option to increase the buffer size could be beneficial.
Metadata
Metadata
Assignees
Labels
No labels