|
@@ -45,7 +45,7 @@ https://e2li.org -> menu : Projet Prosecco. |
|
|
#include <arpa/inet.h> |
|
|
#include <arpa/inet.h> |
|
|
#include <pthread.h> |
|
|
#include <pthread.h> |
|
|
|
|
|
|
|
|
#define Version "1.02" |
|
|
|
|
|
|
|
|
#define Version "1.03" |
|
|
|
|
|
|
|
|
#define F_GETPIPE_SZ 1032 |
|
|
#define F_GETPIPE_SZ 1032 |
|
|
#define F_SETPIPE_SZ 1031 |
|
|
#define F_SETPIPE_SZ 1031 |
|
@@ -1022,7 +1022,7 @@ int Inter=0, i, ie, np=0, opt; |
|
|
dup2(p1[1],1); /* stdout dans p1 */ |
|
|
dup2(p1[1],1); /* stdout dans p1 */ |
|
|
dup2(p1[1],2); /* idem stderr */ |
|
|
dup2(p1[1],2); /* idem stderr */ |
|
|
setsid(); |
|
|
setsid(); |
|
|
execlp(analyse,analyse,"-tn","-i",IFACE,"port","53",NULL); |
|
|
|
|
|
|
|
|
execlp(analyse,analyse,"-tnl","-i",IFACE,"port","53",NULL); |
|
|
perror("execl"); |
|
|
perror("execl"); |
|
|
return 5; |
|
|
return 5; |
|
|
} |
|
|
} |
|
@@ -1075,6 +1075,7 @@ int Inter=0, i, ie, np=0, opt; |
|
|
} |
|
|
} |
|
|
/* analyse */ |
|
|
/* analyse */ |
|
|
if ((s1=strstr(line, " > ")) == NULL) continue; |
|
|
if ((s1=strstr(line, " > ")) == NULL) continue; |
|
|
|
|
|
if (strstr(line, " PTR") != NULL) continue; /* ignore PTR */ |
|
|
if (strncmp(s1-3,".53",3) == 0) { /* REPONSE */ |
|
|
if (strncmp(s1-3,".53",3) == 0) { /* REPONSE */ |
|
|
if ((s2=strstr(s1+3, ":")) == NULL) continue; |
|
|
if ((s2=strstr(s1+3, ":")) == NULL) continue; |
|
|
NBin++; |
|
|
NBin++; |
|
|