aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/ndpi_protocol_ids.h1
-rw-r--r--src/lib/ndpi_content_match.c.inc5
-rw-r--r--src/lib/protocols/tls.c6
3 files changed, 7 insertions, 5 deletions
diff --git a/src/include/ndpi_protocol_ids.h b/src/include/ndpi_protocol_ids.h
index c3b146fc6..07fc505b2 100644
--- a/src/include/ndpi_protocol_ids.h
+++ b/src/include/ndpi_protocol_ids.h
@@ -458,6 +458,7 @@ typedef enum {
NDPI_PROTOCOL_SURFSHARK = 427,
NDPI_PROTOCOL_CACTUSVPN = 428,
NDPI_PROTOCOL_WINDSCRIBE = 429,
+ NDPI_PROTOCOL_SONOS = 430,
#ifdef CUSTOM_NDPI_PROTOCOLS
#include "../../../nDPI-custom/custom_ndpi_protocol_ids.h"
diff --git a/src/lib/ndpi_content_match.c.inc b/src/lib/ndpi_content_match.c.inc
index 3fd6869b3..8e79e24e7 100644
--- a/src/lib/ndpi_content_match.c.inc
+++ b/src/lib/ndpi_content_match.c.inc
@@ -1688,6 +1688,9 @@ static ndpi_protocol_match host_match[] =
{ "windscribe.com", "Windscribe", NDPI_PROTOCOL_WINDSCRIBE, NDPI_PROTOCOL_CATEGORY_VPN, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_DEFAULT_LEVEL },
{ "whiskergalaxy.com", "Windscribe", NDPI_PROTOCOL_WINDSCRIBE, NDPI_PROTOCOL_CATEGORY_VPN, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_DEFAULT_LEVEL },
+ { "sonos.com", "Sonos", NDPI_PROTOCOL_SONOS, NDPI_PROTOCOL_CATEGORY_MUSIC, NDPI_PROTOCOL_FUN, NDPI_PROTOCOL_DEFAULT_LEVEL },
+ { "sonos.radio", "Sonos", NDPI_PROTOCOL_SONOS, NDPI_PROTOCOL_CATEGORY_MUSIC, NDPI_PROTOCOL_FUN, NDPI_PROTOCOL_DEFAULT_LEVEL },
+
#ifdef CUSTOM_NDPI_PROTOCOLS
#include "../../../nDPI-custom/custom_ndpi_content_match_host_match.c.inc"
#endif
@@ -1717,7 +1720,7 @@ static ndpi_tls_cert_name_match tls_certificate_match [] = {
{ "O=NoMachine", NDPI_PROTOCOL_NOMACHINE },
{ "O=Private Internet Access", NDPI_PROTOCOL_PIA },
{ "O=Windscribe", NDPI_PROTOCOL_WINDSCRIBE },
-
+ { "O=Sonos, Inc", NDPI_PROTOCOL_SONOS },
{ "CN=Snapchat Inc.", NDPI_PROTOCOL_SNAPCHAT_CALL },
{ "CN=NVIDIA GameStream", NDPI_PROTOCOL_GEFORCENOW },
diff --git a/src/lib/protocols/tls.c b/src/lib/protocols/tls.c
index 82caf0584..b413cd262 100644
--- a/src/lib/protocols/tls.c
+++ b/src/lib/protocols/tls.c
@@ -653,8 +653,7 @@ void processCertificateElements(struct ndpi_detection_module_struct *ndpi_struct
if(matched_name == 0) {
#if DEBUG_TLS
printf("[TLS] Trying to match '%s' with '%s'\n",
- flow->host_server_name,
- dNSName);
+ flow->host_server_name, dNSName);
#endif
if(dNSName[0] == '*') {
@@ -667,8 +666,7 @@ void processCertificateElements(struct ndpi_detection_module_struct *ndpi_struct
matched_name = 1;
}
}
- }
- else if(strcmp(flow->host_server_name, dNSName) == 0) {
+ } else if(strcmp(flow->host_server_name, dNSName) == 0) {
matched_name = 1;
}
}