diff options
author | root <root@rshg054.dnsready.net> | 2013-08-11 01:21:34 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-11 01:21:34 -0700 |
commit | 18a41d682d6e91e0d28fce23eb75292f477bd620 (patch) | |
tree | bce8f660d7d0b6541cadbc49bf1bac2434e4c0c6 /community/ngrep/ngrep-1.45-fix-ipv6.patch | |
parent | 0ade1da67addf154d93c6a6399b0a3d5a18a3336 (diff) |
Sun Aug 11 01:21:31 PDT 2013
Diffstat (limited to 'community/ngrep/ngrep-1.45-fix-ipv6.patch')
-rw-r--r-- | community/ngrep/ngrep-1.45-fix-ipv6.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/community/ngrep/ngrep-1.45-fix-ipv6.patch b/community/ngrep/ngrep-1.45-fix-ipv6.patch deleted file mode 100644 index 66c5ff399..000000000 --- a/community/ngrep/ngrep-1.45-fix-ipv6.patch +++ /dev/null @@ -1,41 +0,0 @@ ---- ngrep-1.45.ds2/ngrep.c 2010-04-21 12:16:52.000000000 +0200 -+++ ngrep-1.45.ds2-ipv6-patch/ngrep.c 2010-04-21 12:11:49.581088102 +0200 -@@ -711,10 +711,12 @@ void process(u_char *d, struct pcap_pkth - data = (unsigned char *)(tcp_pkt) + tcphdr_offset; - len -= link_offset + ip_hl + tcphdr_offset; - -+/* - #if USE_IPv6 - if (ip_ver == 6) - len -= ntohs(ip6_pkt->ip6_plen); --#endif -+#endif -+*/ - - if ((int32_t)len < 0) - len = 0; -@@ -731,11 +733,12 @@ void process(u_char *d, struct pcap_pkth - data = (unsigned char *)(udp_pkt) + udphdr_offset; - len -= link_offset + ip_hl + udphdr_offset; - -+/* - #if USE_IPv6 - if (ip_ver == 6) - len -= ntohs(ip6_pkt->ip6_plen); - #endif -- -+*/ - if ((int32_t)len < 0) - len = 0; - -@@ -769,7 +772,7 @@ void process(u_char *d, struct pcap_pkth - uint16_t icmp6hdr_offset = (frag_offset) ? 0 : 4; - - data = (unsigned char *)(icmp6_pkt) + icmp6hdr_offset; -- len -= link_offset + ip_hl + ntohs(ip6_pkt->ip6_plen) + icmp6hdr_offset; -+ len -= link_offset + ip_hl + icmp6hdr_offset; - - if ((int32_t)len < 0) - len = 0; - - |