aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/vxlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/protocols/vxlan.c')
-rw-r--r--src/lib/protocols/vxlan.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/lib/protocols/vxlan.c b/src/lib/protocols/vxlan.c
index 04b3b3fbc..ab8383b03 100644
--- a/src/lib/protocols/vxlan.c
+++ b/src/lib/protocols/vxlan.c
@@ -1,7 +1,7 @@
/*
* vxlan.c
*
- * Copyright (C) 2011-22 - ntop.org
+ * Copyright (C) 2011-25 - ntop.org
*
* nDPI is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
@@ -53,7 +53,7 @@ static void ndpi_check_vxlan(struct ndpi_detection_module_struct *ndpi_struct, s
}
}
- NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
+ NDPI_EXCLUDE_DISSECTOR(ndpi_struct, flow);
return;
}
@@ -64,14 +64,10 @@ static void ndpi_search_vxlan(struct ndpi_detection_module_struct *ndpi_struct,
ndpi_check_vxlan(ndpi_struct, flow);
}
-void init_vxlan_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
+void init_vxlan_dissector(struct ndpi_detection_module_struct *ndpi_struct)
{
- ndpi_set_bitmask_protocol_detection("VXLAN", ndpi_struct, *id,
- NDPI_PROTOCOL_VXLAN,
- ndpi_search_vxlan,
- NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
- SAVE_DETECTION_BITMASK_AS_UNKNOWN,
- ADD_TO_DETECTION_BITMASK);
-
- *id += 1;
+ register_dissector("VXLAN", ndpi_struct,
+ ndpi_search_vxlan,
+ NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+ 1, NDPI_PROTOCOL_VXLAN);
}