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