diff options
author | Toni <matzeton@googlemail.com> | 2022-08-08 19:04:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-08 19:04:20 +0200 |
commit | 2e25c36396654cade3919dc4df36da2072096bb1 (patch) | |
tree | 6084e87015382a703fcd8b5536511d9d0728ad3e /example/reader_util.c | |
parent | 523360001e4c9e64d875febd9f024daa2691c31a (diff) |
Add TiVoConnect dissector. Fixes #1697. (#1699)
* added static assert if supported, to complain if the flow struct changes
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 a7c970de7..9c2b1cb02 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1073,6 +1073,18 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl flow->bittorent_hash[j] = '\0'; } } + /* TIVOCONNECT */ + else if(is_ndpi_proto(flow, NDPI_PROTOCOL_TIVOCONNECT)) { + flow->info_type = INFO_TIVOCONNECT; + ndpi_snprintf(flow->tivoconnect.identity_uuid, sizeof(flow->tivoconnect.identity_uuid), + "%s", flow->ndpi_flow->protos.tivoconnect.identity_uuid); + ndpi_snprintf(flow->tivoconnect.machine, sizeof(flow->tivoconnect.machine), + "%s", flow->ndpi_flow->protos.tivoconnect.machine); + ndpi_snprintf(flow->tivoconnect.platform, sizeof(flow->tivoconnect.platform), + "%s", flow->ndpi_flow->protos.tivoconnect.platform); + ndpi_snprintf(flow->tivoconnect.services, sizeof(flow->tivoconnect.services), + "%s", flow->ndpi_flow->protos.tivoconnect.services); + } /* SOFTETHER */ else if(is_ndpi_proto(flow, NDPI_PROTOCOL_SOFTETHER) && !is_ndpi_proto(flow, NDPI_PROTOCOL_HTTP)) { flow->info_type = INFO_SOFTETHER; |