aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2020-08-04 18:09:13 +0200
committerLuca Deri <deri@ntop.org>2020-08-04 18:09:13 +0200
commite16675b7008191157d86dd7752b0a9e529315171 (patch)
tree8249be755e335604626de851914e761658829662 /src
parentea10b8e757c05dd5cee9c74e785111596feb5d7b (diff)
Added new traffic category for connectivity check detection
Diffstat (limited to 'src')
-rw-r--r--src/include/ndpi_typedefs.h5
-rw-r--r--src/lib/ndpi_content_match.c.inc15
-rw-r--r--src/lib/ndpi_main.c2
3 files changed, 21 insertions, 1 deletions
diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h
index 55fa370c9..66fac35af 100644
--- a/src/include/ndpi_typedefs.h
+++ b/src/include/ndpi_typedefs.h
@@ -913,6 +913,11 @@ typedef enum {
NDPI_PROTOCOL_CATEGORY_SHOPPING,
NDPI_PROTOCOL_CATEGORY_PRODUCTIVITY,
NDPI_PROTOCOL_CATEGORY_FILE_SHARING,
+ /*
+ The category below is used by sites who are used
+ to test connectivity
+ */
+ NDPI_PROTOCOL_CATEGORY_CONNECTIVITY_CHECK,
/* Some custom categories */
CUSTOM_CATEGORY_MINING = 99,
diff --git a/src/lib/ndpi_content_match.c.inc b/src/lib/ndpi_content_match.c.inc
index d10d2416e..c8fe416eb 100644
--- a/src/lib/ndpi_content_match.c.inc
+++ b/src/lib/ndpi_content_match.c.inc
@@ -9175,6 +9175,21 @@ static ndpi_category_match category_match[] = {
{ "iptv.sky.", NDPI_PROTOCOL_CATEGORY_STREAMING },
{ "pcdn.skycdn.", NDPI_PROTOCOL_CATEGORY_STREAMING },
+ /* https://success.tanaza.com/s/article/How-Automatic-Detection-of-Captive-Portal-works */
+ { "captive.apple.com", NDPI_PROTOCOL_CATEGORY_CONNECTIVITY_CHECK },
+ { "thinkdifferent.us", NDPI_PROTOCOL_CATEGORY_CONNECTIVITY_CHECK },
+ { "airport.us", NDPI_PROTOCOL_CATEGORY_CONNECTIVITY_CHECK },
+ { "gsp1.apple.com", NDPI_PROTOCOL_CATEGORY_CONNECTIVITY_CHECK },
+ { "msftconnecttest.com", NDPI_PROTOCOL_CATEGORY_CONNECTIVITY_CHECK },
+ { "testconnectivity.microsoft.com", NDPI_PROTOCOL_CATEGORY_CONNECTIVITY_CHECK },
+ { "msftncsi.com", NDPI_PROTOCOL_CATEGORY_CONNECTIVITY_CHECK },
+ { "msftncsi.com.edgesuite.net", NDPI_PROTOCOL_CATEGORY_CONNECTIVITY_CHECK },
+ { "teredo.ipv6.microsoft.com", NDPI_PROTOCOL_CATEGORY_CONNECTIVITY_CHECK },
+ { "teredo.ipv6.microsoft.com.nsatc.net", NDPI_PROTOCOL_CATEGORY_CONNECTIVITY_CHECK },
+ { "detectportal.firefox.com", NDPI_PROTOCOL_CATEGORY_CONNECTIVITY_CHECK },
+ { "connectivitycheck.android.com", NDPI_PROTOCOL_CATEGORY_CONNECTIVITY_CHECK },
+ { "connectivitycheck.gstatic.com", NDPI_PROTOCOL_CATEGORY_CONNECTIVITY_CHECK },
+
/* Hulu Streaming services AS23286 */
{ "8.28.124.0/24", NDPI_PROTOCOL_CATEGORY_STREAMING },
{ "8.28.125.0/24", NDPI_PROTOCOL_CATEGORY_STREAMING },
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index db84efa00..bdbdc89f3 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -1875,7 +1875,7 @@ static const char *categories[] = {
"Shopping",
"Productivity",
"FileSharing",
- "",
+ "ConnectivityCheck",
"",
"",
"",