diff options
author | Campus <campus@ntop.org> | 2016-09-16 02:19:20 +0200 |
---|---|---|
committer | Campus <campus@ntop.org> | 2016-09-16 02:19:20 +0200 |
commit | 730c8d68793e3c9e1ea84b078a7674e68aa5ae2c (patch) | |
tree | 7af3ee4f6e35c8733b03282dd1ca84a5b84c0aa5 /src/lib/protocols/rsync.c | |
parent | dbb3d8280ea2a5a5697ad8133973838451ef1d6d (diff) |
fix wrong comment rsync - deleted old tds dissector
Diffstat (limited to 'src/lib/protocols/rsync.c')
-rw-r--r-- | src/lib/protocols/rsync.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/protocols/rsync.c b/src/lib/protocols/rsync.c index 11f4aa89c..2b85da72b 100644 --- a/src/lib/protocols/rsync.c +++ b/src/lib/protocols/rsync.c @@ -2,6 +2,7 @@ * rsync.c * * Copyright (C) 2013 Remy Mudingay <mudingay@ill.fr> + * Copyright (C) 2016 ntop.org * * This module is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -21,7 +22,6 @@ #include "ndpi_api.h" - #ifdef NDPI_PROTOCOL_RSYNC static void ndpi_int_rsync_add_connection(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) @@ -35,10 +35,10 @@ void ndpi_search_rsync(struct ndpi_detection_module_struct *ndpi_struct, struct NDPI_LOG(NDPI_PROTOCOL_RSYNC, ndpi_struct, NDPI_LOG_DEBUG, "search for RSYNC.\n"); - if(packet->tcp != NULL) { + if(packet->tcp) { NDPI_LOG(NDPI_PROTOCOL_RSYNC, ndpi_struct, NDPI_LOG_DEBUG, "calculating RSYNC over tcp.\n"); /* - * Should match: memcmp(packet->payload, "@RSYN NCD: 28", 14) == 0) + * Should match: memcmp(packet->payload, "@RSYNCD: 28", 14) == 0) */ if (packet->payload_packet_len == 12 && packet->payload[0] == 0x40 && packet->payload[1] == 0x52 && packet->payload[2] == 0x53 && |