aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/netbios.c
diff options
context:
space:
mode:
authorVitaly Lavrov <vel21ripn@gmail.com>2021-06-15 09:28:09 +0000
committerGitHub <noreply@github.com>2021-06-15 11:28:09 +0200
commitbe808c30f3f4582009df4c5efccd4f3bb0c6ef1d (patch)
treef16d861560fecd97d23e5de1826d8fdc9bcd0049 /src/lib/protocols/netbios.c
parent09293fabd9dcb92812641788509a1a766e9320f8 (diff)
Code review. (#1205)
The common actions required to call the ac_automata_search() function have been moved to the ndpi_match_string_common function. This made it possible to simplify the ndpi_match_string, ndpi_match_string_protocol_id, ndpi_match_string_value, ndpi_match_custom_category, ndpi_match_string_subprotocol, ndpi_match_bigram, ndpi_match_trigram functions. Using u_int16_t type for protocol identifiers when working with the ahocorasick library (changes src/include/ndpi_api.h.in and src/include/ndpi_typedefs.h). Reworked "finalization" of all AC_AUTOMATA_t structures. Changing the order of fields in the ndpi_call_function_struct structure reduces the size of the ndpi_detection_module_struct structure by 10 kB (for x86_64).
Diffstat (limited to 'src/lib/protocols/netbios.c')
0 files changed, 0 insertions, 0 deletions