Compilarion fix

Updated SIP result
This commit is contained in:
Luca Deri
2019-07-22 16:08:44 +02:00
parent 72b05fed75
commit 6d00b59bb8
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -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 ");
+2 -2
View File
@@ -1,8 +1,8 @@
RTP 9 1926 1
SIP 102 47087 2
WhatsAppVoice 1 146 1
RTCP 1 146 1
1 UDP 192.168.1.2:5060 <-> 212.242.33.35:5060 [proto: 100/SIP][cat: VoIP/10][53 pkts/21940 bytes <-> 31 pkts/15635 bytes][PLAIN TEXT (REGISTER sip)]
2 UDP 192.168.1.2:5060 <-> 200.68.120.81:5060 [proto: 100/SIP][cat: VoIP/10][15 pkts/7568 bytes <-> 3 pkts/1944 bytes][PLAIN TEXT (INVITE sip)]
3 UDP 192.168.1.2:30000 -> 212.242.33.36:40392 [proto: 87/RTP][cat: Media/1][9 pkts/1926 bytes -> 0 pkts/0 bytes][PLAIN TEXT (VRUDKBuYs)]
4 UDP 192.168.1.2:30001 -> 212.242.33.36:40393 [proto: 189/WhatsAppVoice][cat: VoIP/10][1 pkts/146 bytes -> 0 pkts/0 bytes][PLAIN TEXT (8@192.168.1.2)]
4 UDP 192.168.1.2:30001 -> 212.242.33.36:40393 [proto: 165/RTCP][cat: VoIP/10][1 pkts/146 bytes -> 0 pkts/0 bytes][PLAIN TEXT (8@192.168.1.2)]