diff options
Diffstat (limited to 'src/lib/protocols/softether.c')
-rw-r--r-- | src/lib/protocols/softether.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/src/lib/protocols/softether.c b/src/lib/protocols/softether.c index d0ad8b492..379e743f7 100644 --- a/src/lib/protocols/softether.c +++ b/src/lib/protocols/softether.c @@ -304,7 +304,7 @@ static void ndpi_search_softether(struct ndpi_detection_module_struct *ndpi_stru if(packet->payload_packet_len == 1) { if((packet->payload[0] != 0x41) || (flow->packet_counter > 2)) - NDPI_EXCLUDE_PROTO(ndpi_struct, flow); + NDPI_EXCLUDE_DISSECTOR(ndpi_struct, flow); return; } @@ -323,7 +323,7 @@ static void ndpi_search_softether(struct ndpi_detection_module_struct *ndpi_stru } } - NDPI_EXCLUDE_PROTO(ndpi_struct, flow); + NDPI_EXCLUDE_DISSECTOR(ndpi_struct, flow); } /* ***************************************************** */ @@ -347,15 +347,9 @@ static int ndpi_search_softether_again(struct ndpi_detection_module_struct *ndpi /* ***************************************************** */ -void init_softether_dissector(struct ndpi_detection_module_struct *ndpi_struct, - u_int32_t *id) { - ndpi_set_bitmask_protocol_detection("Softether", ndpi_struct, *id, - NDPI_PROTOCOL_SOFTETHER, - ndpi_search_softether, - NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, - SAVE_DETECTION_BITMASK_AS_UNKNOWN, - ADD_TO_DETECTION_BITMASK - ); - - *id += 1; +void init_softether_dissector(struct ndpi_detection_module_struct *ndpi_struct) { + register_dissector("Softether", ndpi_struct, + ndpi_search_softether, + NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD, + 1, NDPI_PROTOCOL_SOFTETHER); } |