Skip to content

Commit

Permalink
Bug #571 Increase SNAPLEN to 262144
Browse files Browse the repository at this point in the history
  • Loading branch information
fklassen committed Jun 2, 2020
1 parent 34b456d commit 824bbd3
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/defines.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,17 @@ typedef struct tcpr_speed_s {
#define MAX_FILES 1024 /* Max number of files we can pass to tcpreplay */

#define DEFAULT_MTU 1500 /* Max Transmission Unit of standard ethernet
* don't forget *frames* are MTU + L2 header! */
* don't forget *frames* are MTU + L2 header!
*/

#define MAXPACKET 65549 /* was 16436 linux loopback, but maybe something is bigger then
linux loopback */
#define MAX_SNAPLEN 262144 /* tell libpcap to capture the entire packet
* this is the maximum size supported by libpcap
* (https://github.com/the-tcpdump-group/libpcap/blob/master/pcap-int.h#L99-L125)
*/

#define MAX_SNAPLEN 65535 /* tell libpcap to capture the entire packet */
#define MAXPACKET (MAX_SNAPLEN + 14) /* snap length plus some room for adding a
* couple VLAN headers or a L2 header
*/

#define DNS_RESOLVE 1
#define DNS_DONT_RESOLVE 0
Expand Down

0 comments on commit 824bbd3

Please sign in to comment.