diff options
author | havup <42641299+havup@users.noreply.github.com> | 2020-03-25 19:05:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-25 19:05:49 +0800 |
commit | 4d95dae2ae2beabbd9c4ceb86444a9643781ab8f (patch) | |
tree | 381ea266823efd13bff8493993f00d0be4e6c39b /src | |
parent | 6c3cbe50e24c1d6b278643fb825e76ec09b7bb88 (diff) |
Update ndpi_main.c
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ndpi_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 21491c5e7..a9caf52ec 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -1782,6 +1782,12 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp ndpi_build_default_ports(ports_a, 10050, 0, 0, 0, 0) /* TCP */, ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */ ); + ndpi_set_proto_defaults(ndpi_str, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_S7COMM, + 1 /* no subprotocol */, no_master, + no_master, "s7comm", NDPI_PROTOCOL_CATEGORY_NETWORK, + ndpi_build_default_ports(ports_a, 102, 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" |