Replace complicated TPKT header validation with an helper function (#2201)

* Replace complicated TPKT header validation with an helper function

* Move tpkt_verify_hdr function definition to ndpi_utils.c
This commit is contained in:
Vladimir Gavrilov
2023-12-10 12:10:50 +01:00
committed by GitHub
parent f74cf16c36
commit c809e7c069
6 changed files with 35 additions and 45 deletions
+2 -1
View File
@@ -417,7 +417,8 @@ u_int32_t make_mining_key(struct ndpi_flow_struct *flow);
/* Stun */
int stun_search_into_zoom_cache(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow);
/* TPKT */
int tpkt_verify_hdr(const struct ndpi_packet_struct * const packet);
/* Protocols init */
void init_diameter_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);