mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-01 16:30:17 +00:00
Compilarion fix
Updated SIP result
This commit is contained in:
parent
72b05fed75
commit
6d00b59bb8
2 changed files with 5 additions and 5 deletions
|
|
@ -3184,6 +3184,7 @@ void bpf_filter_pkt_peak_filter(json_object **jObj_bpfFilter,
|
|||
snprintf(&filter[l], sizeof(filter)-l, "%d", port_array[i]);
|
||||
else
|
||||
snprintf(&filter[l], sizeof(filter)-l, "%d or ", port_array[i]);
|
||||
|
||||
i++;
|
||||
}
|
||||
|
||||
|
|
@ -3197,11 +3198,10 @@ void bpf_filter_pkt_peak_filter(json_object **jObj_bpfFilter,
|
|||
int l;
|
||||
|
||||
if(port_array[0] != INIT_VAL)
|
||||
strncat(filter, " and not (src ", sizeof(filter)/sizeof(char));
|
||||
strncat(filter, " and not (src ", sizeof(filter)-strlen(filter));
|
||||
else
|
||||
strcpy(filter, "not (src ");
|
||||
|
||||
|
||||
i=0;
|
||||
while(i < sh_size && src_host_array[i] != NULL) {
|
||||
l = strlen(filter);
|
||||
|
|
@ -3224,7 +3224,7 @@ void bpf_filter_pkt_peak_filter(json_object **jObj_bpfFilter,
|
|||
int l;
|
||||
|
||||
if(port_array[0] != INIT_VAL || src_host_array[0] != NULL)
|
||||
strncat(filter, " and not (dst ", sizeof(filter)/sizeof(char));
|
||||
strncat(filter, " and not (dst ", sizeof(filter)-strlen(filter));
|
||||
else
|
||||
strcpy(filter, "not (dst ");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue