diff options
author | Matteo Bracci <matteobracci1@gmail.com> | 2015-07-17 15:30:34 +0200 |
---|---|---|
committer | Matteo Bracci <matteobracci1@gmail.com> | 2015-07-17 15:30:34 +0200 |
commit | 0739b577d4506bbc7bb78a99626f358d4743d9bd (patch) | |
tree | 424a20a8b54f314aa75c4564c333ef203e4588ff /src | |
parent | c62e8dadb6cf77a093c4623e337256ce31f193d7 (diff) |
Update starcraft2.c
starcraft2
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/protocols/starcraft2.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/protocols/starcraft2.c b/src/lib/protocols/starcraft2.c index 69bba700c..d342e91a4 100644 --- a/src/lib/protocols/starcraft2.c +++ b/src/lib/protocols/starcraft2.c @@ -148,4 +148,15 @@ void ndpi_search_starcraft2(struct ndpi_detection_module_struct* ndpi_struct, st } } +void init_starcraft2_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) +{ + ndpi_set_bitmask_protocol_detection("STARCRAFT2", ndpi_struct, detection_bitmask, *id, + NDPI_PROTOCOL_STARCRAFT2, ndpi_search_starcraft2, + NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION, + SAVE_DETECTION_BITMASK_AS_UNKNOWN, + ADD_TO_DETECTION_BITMASK); + + *id += 1; +} + #endif |