diff options
author | sharonenoch <52180175+sharonenoch@users.noreply.github.com> | 2022-10-01 06:01:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-01 12:01:41 +0200 |
commit | 503aac70bccfecfc920e30b5d7d32e252f0cae92 (patch) | |
tree | d7c3672232539d62a3d23362385f48bf1e56a3ef /src/lib/ndpi_main.c | |
parent | f3a74d97d845d07628533717666637e1630aa1ed (diff) |
Line app support (#1759)
* Standard support for LINE app
* Added test pcap for LINE app
* make check result for LINE app
* Make check success as 1kxun has LINE packets
* Added the ASN inc file for LINE
* Removed extra lines as its effecting make check
* Editing the SNI required a new pcap output file for TLS.Line format
* Run Configure with --with-pcre --with-maxminddb to enable the generation of h323-overflow.pcap.out
Co-authored-by: Sharon Enoch <sharone@amzetta.com>
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 9871c6a59..b43cfd964 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -89,6 +89,8 @@ #include "inc_generated/ndpi_asn_alibaba.c.inc" #include "inc_generated/ndpi_asn_avast.c.inc" #include "inc_generated/ndpi_asn_discord.c.inc" +#include "inc_generated/ndpi_asn_line.c.inc" + /* Third party libraries */ #include "third_party/include/ndpi_patricia.h" @@ -1994,6 +1996,11 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp "CryNetwork", NDPI_PROTOCOL_CATEGORY_GAME, ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */, ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */); + ndpi_set_proto_defaults(ndpi_str, 0 /* encrypted */, 0 /* nw proto */, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_LINE, + "Line", NDPI_PROTOCOL_CATEGORY_CHAT, + ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */, + ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */); + #ifdef CUSTOM_NDPI_PROTOCOLS #include "../../../nDPI-custom/custom_ndpi_main.c" @@ -2650,6 +2657,7 @@ struct ndpi_detection_module_struct *ndpi_init_detection_module(ndpi_init_prefs ndpi_init_ptree_ipv4(ndpi_str, ndpi_str->protocols_ptree, ndpi_protocol_alibaba_protocol_list); ndpi_init_ptree_ipv4(ndpi_str, ndpi_str->protocols_ptree, ndpi_protocol_avast_protocol_list); ndpi_init_ptree_ipv4(ndpi_str, ndpi_str->protocols_ptree, ndpi_protocol_discord_protocol_list); + ndpi_init_ptree_ipv4(ndpi_str, ndpi_str->protocols_ptree, ndpi_protocol_line_protocol_list); } } |