summaryrefslogtreecommitdiff
path: root/net-misc/nemesis/files/nemesis-1.4-prototcp.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-01-22 20:28:19 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-01-22 20:28:19 +0000
commitabaa75b10f899ada8dd05b23cc03205064394bc6 (patch)
treeeca3dd248b73b92013cba00a0fcc1edf2696e19a /net-misc/nemesis/files/nemesis-1.4-prototcp.patch
parent24fd814c326e282c4321965c31f341dad77e270d (diff)
gentoo resync : 22.01.2021
Diffstat (limited to 'net-misc/nemesis/files/nemesis-1.4-prototcp.patch')
-rw-r--r--net-misc/nemesis/files/nemesis-1.4-prototcp.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/net-misc/nemesis/files/nemesis-1.4-prototcp.patch b/net-misc/nemesis/files/nemesis-1.4-prototcp.patch
deleted file mode 100644
index b4a4e7c71378..000000000000
--- a/net-misc/nemesis/files/nemesis-1.4-prototcp.patch
+++ /dev/null
@@ -1,33 +0,0 @@
---- a/src/nemesis-proto_tcp.c
-+++ b/src/nemesis-proto_tcp.c
-@@ -16,7 +16,7 @@
- FileData *ipod, FileData *tcpod, char *device)
- {
- int n;
-- u_int32_t tcp_packetlen = 0, tcp_meta_packetlen = 0;
-+ u_int32_t tcp_packetlen = 0, tcp_meta_packetlen = 0, tcp_headerlen = 0, ip_headerlen = 0;
- static u_int8_t *pkt;
- static int sockfd = -1;
- struct libnet_link_int *l2 = NULL;
-@@ -58,13 +58,20 @@
- #endif
- }
-
-+ ip_headerlen = LIBNET_IP_H + ipod->file_s;
-+ tcp_headerlen = LIBNET_TCP_H + tcpod->file_s;
-+
- tcp_packetlen = link_offset + LIBNET_IP_H + LIBNET_TCP_H + pd->file_s +
- ipod->file_s + tcpod->file_s;
-
-- tcp_meta_packetlen = tcp_packetlen - (link_offset + LIBNET_IP_H);
-+ tcp_meta_packetlen = LIBNET_TCP_H + pd->file_s;
-
- #ifdef DEBUG
-+ printf("DEBUG: link offsetlength %u.\n", link_offset);
-+ printf("DEBUG: IP header length %u.\n", ip_headerlen);
-+ printf("DEBUG: TCP header length %u.\n", tcp_headerlen);
- printf("DEBUG: TCP packet length %u.\n", tcp_packetlen);
-+ printf("DEBUG: TCP meta length %u.\n", tcp_meta_packetlen);
- printf("DEBUG: IP options size %u.\n", ipod->file_s);
- printf("DEBUG: TCP options size %u.\n", tcpod->file_s);
- printf("DEBUG: TCP payload size %u.\n", pd->file_s);