summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2016-11-24 23:42:36 +0100
committerJeroen Roovers <jer@gentoo.org>2016-11-24 23:42:36 +0100
commit158d982b5393f96dbe7eaeff6bd200260d5f1aa1 (patch)
tree3f06f1a5560d4b8512149d04bb2f9a2590e0d548 /net-analyzer/tcpreplay/files
parentnet-analyzer/tcpreplay: Version bump. (diff)
downloadgentoo-158d982b5393f96dbe7eaeff6bd200260d5f1aa1.tar.gz
gentoo-158d982b5393f96dbe7eaeff6bd200260d5f1aa1.tar.bz2
gentoo-158d982b5393f96dbe7eaeff6bd200260d5f1aa1.zip
net-analyzer/tcpreplay: Old.
Package-Manager: portage-2.3.2
Diffstat (limited to 'net-analyzer/tcpreplay/files')
-rw-r--r--net-analyzer/tcpreplay/files/tcpreplay-4.1.1-MAXPACKET.patch22
1 files changed, 0 insertions, 22 deletions
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