You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
To add to that, if my read of TPACKET_V3 is correct, then setting the snapshot length might also be useful there, but I'm not 100% certain that this is true (setting the buffer size explicitly would be true regardless because of memory consumption).
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.
The text was updated successfully, but these errors were encountered: