diff options
Diffstat (limited to 'src/lib/protocols/teamspeak.c')
-rw-r--r-- | src/lib/protocols/teamspeak.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/lib/protocols/teamspeak.c b/src/lib/protocols/teamspeak.c index dbd1874b6..7efa7531a 100644 --- a/src/lib/protocols/teamspeak.c +++ b/src/lib/protocols/teamspeak.c @@ -1,5 +1,5 @@ /* - * viber.c + * teamspeak.c * * Copyright (C) 2013 Remy Mudingay <mudingay@ill.fr> * @@ -62,4 +62,17 @@ else if (packet->tcp != NULL) { NDPI_ADD_PROTOCOL_TO_BITMASK(flow->excluded_protocol_bitmask, NDPI_PROTOCOL_TEAMSPEAK); return; } + +void init_teamspeak_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) +{ + ndpi_set_bitmask_protocol_detection("TEAMSPEAK", ndpi_struct, detection_bitmask, *id, + NDPI_PROTOCOL_TEAMSPEAK, + ndpi_search_teamspeak, + NDPI_SELECTION_BITMASK_PROTOCOL_TCP_OR_UDP_WITH_PAYLOAD, + SAVE_DETECTION_BITMASK_AS_UNKNOWN, + ADD_TO_DETECTION_BITMASK); + + *id += 1; +} + #endif |