diff options
author | Luca <deri@ntop.org> | 2015-07-01 17:40:14 +0200 |
---|---|---|
committer | Luca <deri@ntop.org> | 2015-07-01 17:40:14 +0200 |
commit | 60884f9047882863d27f7e8f5fb760897c599800 (patch) | |
tree | 2b09f2ec1a551b59a98baee790c858fb3e038ffe /src/lib/protocols/radius.c | |
parent | 49ea23530f876930896dc5aa6a84ef6219589171 (diff) |
Split former protocol into upper and lower protocol
Diffstat (limited to 'src/lib/protocols/radius.c')
-rw-r--r-- | src/lib/protocols/radius.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/protocols/radius.c b/src/lib/protocols/radius.c index 9ab33637b..79cd0407d 100644 --- a/src/lib/protocols/radius.c +++ b/src/lib/protocols/radius.c @@ -31,7 +31,7 @@ struct radius_header { static void ndpi_check_radius(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) { - struct ndpi_packet_struct *packet = &flow->packet; + struct ndpi_packet_struct *packet = &flow->packet; // const u_int8_t *packet_payload = packet->payload; u_int32_t payload_len = packet->payload_packet_len; @@ -52,11 +52,11 @@ static void ndpi_check_radius(struct ndpi_detection_module_struct *ndpi_struct, && (h->code <= 5) && (len == payload_len)) { NDPI_LOG(NDPI_PROTOCOL_RADIUS, ndpi_struct, NDPI_LOG_DEBUG, "Found radius.\n"); - ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_RADIUS); - + ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_RADIUS, NDPI_PROTOCOL_UNKNOWN); + return; } - + NDPI_ADD_PROTOCOL_TO_BITMASK(flow->excluded_protocol_bitmask, NDPI_PROTOCOL_RADIUS); return; } |