403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/net/ngrep/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/net/ngrep/files/patch-fix-ipv6
--- ngrep.c	2010-04-21 12:16:52.000000000 +0200
+++ 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;

Youez - 2016 - github.com/yon3zu
LinuXploit