aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/battlefield.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/protocols/battlefield.c')
-rw-r--r--src/lib/protocols/battlefield.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/protocols/battlefield.c b/src/lib/protocols/battlefield.c
index eef89afd1..5f8a0c0e2 100644
--- a/src/lib/protocols/battlefield.c
+++ b/src/lib/protocols/battlefield.c
@@ -115,4 +115,15 @@ void ndpi_search_battlefield(struct ndpi_detection_module_struct *ndpi_struct, s
return;
}
+
+void init_battlefield_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
+{
+ ndpi_set_bitmask_protocol_detection("BATTLEFIELD", ndpi_struct, detection_bitmask, *id++,
+ NDPI_PROTOCOL_BATTLEFIELD,
+ ndpi_search_battlefield,
+ NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+ SAVE_DETECTION_BITMASK_AS_UNKNOWN,
+ ADD_TO_DETECTION_BITMASK);
+}
+
#endif