From 9f3804444ebc8c2266abcc7e3dd6bf6abda46bfc Mon Sep 17 00:00:00 2001 From: Campus Date: Tue, 27 Sep 2016 11:17:06 +0200 Subject: fixed drda_db2 dissector --- src/lib/protocols/drda.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/lib/protocols/drda.c b/src/lib/protocols/drda.c index fe75379ff..df743fd7b 100644 --- a/src/lib/protocols/drda.c +++ b/src/lib/protocols/drda.c @@ -21,7 +21,7 @@ #ifdef NDPI_PROTOCOL_DRDA -#define DRDA_PORT 50000 +//#define DRDA_PORT 50000 struct ndpi_drda_hdr { u_int16_t length; @@ -43,9 +43,7 @@ void ndpi_search_drda(struct ndpi_detection_module_struct *ndpi_struct, if(packet->tcp != NULL) { /* check port */ - if((ntohs(packet->tcp->source) == DRDA_PORT || - ntohs(packet->tcp->dest) == DRDA_PORT) && - payload_len >= sizeof(struct ndpi_drda_hdr)) { + if(payload_len >= sizeof(struct ndpi_drda_hdr)) { struct ndpi_drda_hdr * drda = (struct ndpi_drda_hdr *) packet->payload; -- cgit v1.2.3