diff options
author | Toni <matzeton@googlemail.com> | 2022-07-29 19:29:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-29 19:29:54 +0200 |
commit | ed4f106a0d6ba2d644e95354891b4b68f927c535 (patch) | |
tree | 9dcd51e78edaa9eb1d41149242ba37fe2eb9811d /example/reader_util.c | |
parent | 405a52ed65c0b641b26f0571bf6a6c369c5251d7 (diff) |
Add Softether dissector. (#1679)
Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/example/reader_util.c b/example/reader_util.c index dfeeb8672..48f522cbf 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1080,6 +1080,18 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl flow->bittorent_hash[j] = '\0'; } } + /* SOFTETHER */ + else if(is_ndpi_proto(flow, NDPI_PROTOCOL_SOFTETHER) && !is_ndpi_proto(flow, NDPI_PROTOCOL_HTTP)) { + flow->info_type = INFO_SOFTETHER; + ndpi_snprintf(flow->softether.ip, sizeof(flow->softether.ip), "%s", + flow->ndpi_flow->protos.softether.ip); + ndpi_snprintf(flow->softether.port, sizeof(flow->softether.port), "%s", + flow->ndpi_flow->protos.softether.port); + ndpi_snprintf(flow->softether.hostname, sizeof(flow->softether.hostname), "%s", + flow->ndpi_flow->protos.softether.hostname); + ndpi_snprintf(flow->softether.fqdn, sizeof(flow->softether.fqdn), "%s", + flow->ndpi_flow->protos.softether.fqdn); + } /* DNS */ else if(is_ndpi_proto(flow, NDPI_PROTOCOL_DNS)) { if(flow->ndpi_flow->protos.dns.rsp_type == 0x1) |