diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2022-03-28 04:25:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-28 04:25:34 +0200 |
commit | 6bcba118d476d503c73fafe77054ed2e1117e745 (patch) | |
tree | 16195d5f3a88797a93cea115eb2cd88769d40247 /example/reader_util.c | |
parent | 6acf7a6abeb58547ea85236c044ac0d1b8f80d9d (diff) |
reader_util: add support for userAgent in SSDP (#1502)
Update unit tests results
Follow-up of d668ab4b
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/example/reader_util.c b/example/reader_util.c index eff022fe2..7bf2a681d 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1113,6 +1113,8 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl snprintf(flow->http.request_content_type, sizeof(flow->http.request_content_type), "%s", flow->ndpi_flow->http.request_content_type ? flow->ndpi_flow->http.request_content_type : ""); snprintf(flow->http.user_agent, sizeof(flow->http.user_agent), "%s", flow->ndpi_flow->http.user_agent ? flow->ndpi_flow->http.user_agent : ""); } + } else if(is_ndpi_proto(flow, NDPI_PROTOCOL_SSDP)) { + snprintf(flow->http.user_agent, sizeof(flow->http.user_agent), "%s", flow->ndpi_flow->http.user_agent ? flow->ndpi_flow->http.user_agent : ""); } else if(is_ndpi_proto(flow, NDPI_PROTOCOL_TELNET)) { if(flow->ndpi_flow->protos.telnet.username[0] != '\0') flow->telnet.username = ndpi_strdup(flow->ndpi_flow->protos.telnet.username); |