From 158d982b5393f96dbe7eaeff6bd200260d5f1aa1 Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Thu, 24 Nov 2016 23:42:36 +0100 Subject: net-analyzer/tcpreplay: Old. Package-Manager: portage-2.3.2 --- .../files/tcpreplay-4.1.1-MAXPACKET.patch | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 net-analyzer/tcpreplay/files/tcpreplay-4.1.1-MAXPACKET.patch (limited to 'net-analyzer/tcpreplay/files') diff --git a/net-analyzer/tcpreplay/files/tcpreplay-4.1.1-MAXPACKET.patch b/net-analyzer/tcpreplay/files/tcpreplay-4.1.1-MAXPACKET.patch deleted file mode 100644 index ccb2dca5bb95..000000000000 --- a/net-analyzer/tcpreplay/files/tcpreplay-4.1.1-MAXPACKET.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- a/src/defines.h.in -+++ b/src/defines.h.in -@@ -145,7 +145,7 @@ - #define DEFAULT_MTU 1500 /* Max Transmission Unit of standard ethernet - * don't forget *frames* are MTU + L2 header! */ - --#define MAXPACKET 65535 /* was 16436 linux loopback, but maybe something is bigger then -+#define MAXPACKET 65549 /* was 16436 linux loopback, but maybe something is bigger then - linux loopback */ - - #define MAX_SNAPLEN 65535 /* tell libpcap to capture the entire packet */ ---- a/src/tcprewrite.c -+++ b/src/tcprewrite.c -@@ -253,6 +253,8 @@ rewrite_packets(tcpedit_t *tcpedit, pcap_t *pin, pcap_dumper_t *pout) - packetnum++; - dbgx(2, "packet " COUNTER_SPEC " caplen %d", packetnum, pkthdr.caplen); - -+ if (pkthdr.caplen > MAXPACKET) -+ errx(-1, "Frame too big, caplen %d exceeds %d", pkthdr.caplen, MAXPACKET); - /* - * copy over the packet so we can pad it out if necessary and - * because pcap_next() returns a const ptr -- cgit v1.2.3-65-gdbad