diff options
-rw-r--r-- | example/protos.txt | 1 | ||||
-rw-r--r-- | src/lib/ndpi_main.c | 2 | ||||
-rw-r--r-- | tests/result/h323-overflow.pcap.out | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/example/protos.txt b/example/protos.txt index a9b4fe0ad..5399e6356 100644 --- a/example/protos.txt +++ b/example/protos.txt @@ -7,6 +7,7 @@ tcp:860,udp:860,tcp:3260,udp:3260@iSCSI tcp:3000@ntop tcp:9002@Elasticsearch tcp:5601@Kibana +tcp:65535@TestProto # # nBPF filters (https://github.com/ntop/PF_RING/tree/dev/userland/nbpf)) diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index fa12772eb..97317a1c1 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -604,7 +604,7 @@ static void addDefaultPort(struct ndpi_detection_module_struct *ndpi_str, ndpi_default_ports_tree_node_t **root, const char *_func, int _line) { - u_int16_t port; + u_int32_t port; for(port = range->port_low; port <= range->port_high; port++) { ndpi_default_ports_tree_node_t *node = diff --git a/tests/result/h323-overflow.pcap.out b/tests/result/h323-overflow.pcap.out index d115a2de9..d438ffbd9 100644 --- a/tests/result/h323-overflow.pcap.out +++ b/tests/result/h323-overflow.pcap.out @@ -22,4 +22,4 @@ Patricia protocols: 0/0 (search/found) HomeRouter 1 58 1 - 1 TCP 192.168.1.1:31337 -> 192.168.1.2:80 [proto: 335/HomeRouter][IP: 0/Unknown][ClearText][Confidence: nBPF][1 pkts/58 bytes -> 0 pkts/0 bytes][Goodput ratio: 7/0][< 1 sec][Plen Bins: 100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] + 1 TCP 192.168.1.1:31337 -> 192.168.1.2:80 [proto: 336/HomeRouter][IP: 0/Unknown][ClearText][Confidence: nBPF][1 pkts/58 bytes -> 0 pkts/0 bytes][Goodput ratio: 7/0][< 1 sec][Plen Bins: 100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] |