ipv6: add support for ipv6 addresses lists (#2113)

This commit is contained in:
Ivan Nardi
2023-10-26 20:15:44 +02:00
committed by GitHub
parent 1832d247b3
commit 611c3b66f0
524 changed files with 36435 additions and 3191 deletions
+43 -10
View File
@@ -58,8 +58,7 @@ static ndpi_network ndpi_protocol_opendns_protocol_list[] = {
{ 0x92704000 /* 146.112.64.0/22 */, 22, NDPI_PROTOCOL_OPENDNS },
{ 0x92704800 /* 146.112.72.0/23 */, 23, NDPI_PROTOCOL_OPENDNS },
{ 0x92704E00 /* 146.112.78.0/23 */, 23, NDPI_PROTOCOL_OPENDNS },
{ 0x92705100 /* 146.112.81.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0x92705200 /* 146.112.82.0/23 */, 23, NDPI_PROTOCOL_OPENDNS },
{ 0x92705000 /* 146.112.80.0/22 */, 22, NDPI_PROTOCOL_OPENDNS },
{ 0x92705400 /* 146.112.84.0/23 */, 23, NDPI_PROTOCOL_OPENDNS },
{ 0x92705600 /* 146.112.86.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0x92705C00 /* 146.112.92.0/22 */, 22, NDPI_PROTOCOL_OPENDNS },
@@ -87,16 +86,12 @@ static ndpi_network ndpi_protocol_opendns_protocol_list[] = {
{ 0x9270DE00 /* 146.112.222.0/23 */, 23, NDPI_PROTOCOL_OPENDNS },
{ 0x9270E000 /* 146.112.224.0/19 */, 19, NDPI_PROTOCOL_OPENDNS },
{ 0x97BA0000 /* 151.186.0.0/20 */, 20, NDPI_PROTOCOL_OPENDNS },
{ 0x97BA1000 /* 151.186.16.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0x97BA1000 /* 151.186.16.0/23 */, 23, NDPI_PROTOCOL_OPENDNS },
{ 0x97BA1200 /* 151.186.18.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0x97BA4000 /* 151.186.64.0/23 */, 23, NDPI_PROTOCOL_OPENDNS },
{ 0x97BAD000 /* 151.186.208.0/23 */, 23, NDPI_PROTOCOL_OPENDNS },
{ 0x97BAD200 /* 151.186.210.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0x97BAE000 /* 151.186.224.0/22 */, 22, NDPI_PROTOCOL_OPENDNS },
{ 0x97BAE500 /* 151.186.229.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0x97BAE600 /* 151.186.230.0/23 */, 23, NDPI_PROTOCOL_OPENDNS },
{ 0x97BAE800 /* 151.186.232.0/21 */, 21, NDPI_PROTOCOL_OPENDNS },
{ 0x97BAF000 /* 151.186.240.0/20 */, 20, NDPI_PROTOCOL_OPENDNS },
{ 0x97BAE000 /* 151.186.224.0/19 */, 19, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBE0000 /* 155.190.0.0/22 */, 22, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBE0500 /* 155.190.5.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBE0600 /* 155.190.6.0/23 */, 23, NDPI_PROTOCOL_OPENDNS },
@@ -120,6 +115,7 @@ static ndpi_network ndpi_protocol_opendns_protocol_list[] = {
{ 0x9BBE4600 /* 155.190.70.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBE4900 /* 155.190.73.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBE5300 /* 155.190.83.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBE5400 /* 155.190.84.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBE5700 /* 155.190.87.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBE5900 /* 155.190.89.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBE5B00 /* 155.190.91.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
@@ -127,14 +123,14 @@ static ndpi_network ndpi_protocol_opendns_protocol_list[] = {
{ 0x9BBE6300 /* 155.190.99.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBE6400 /* 155.190.100.0/22 */, 22, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBE6800 /* 155.190.104.0/23 */, 23, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBE6F00 /* 155.190.111.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBE7300 /* 155.190.115.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBE7400 /* 155.190.116.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBE7600 /* 155.190.118.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBE8000 /* 155.190.128.0/21 */, 21, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBE8800 /* 155.190.136.0/22 */, 22, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBE8C00 /* 155.190.140.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBE9C00 /* 155.190.156.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBE9200 /* 155.190.146.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBE9C00 /* 155.190.156.0/23 */, 23, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBEA000 /* 155.190.160.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBEC000 /* 155.190.192.0/20 */, 20, NDPI_PROTOCOL_OPENDNS },
{ 0x9BBED000 /* 155.190.208.0/21 */, 21, NDPI_PROTOCOL_OPENDNS },
@@ -156,6 +152,7 @@ static ndpi_network ndpi_protocol_opendns_protocol_list[] = {
{ 0x9BBEFE00 /* 155.190.254.0/23 */, 23, NDPI_PROTOCOL_OPENDNS },
{ 0xA2D25000 /* 162.210.80.0/23 */, 23, NDPI_PROTOCOL_OPENDNS },
{ 0xA2D25200 /* 162.210.82.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0xA2D25500 /* 162.210.85.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0xB93C5400 /* 185.60.84.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
{ 0xB93C5600 /* 185.60.86.0/23 */, 23, NDPI_PROTOCOL_OPENDNS },
{ 0xCCC2E800 /* 204.194.232.0/24 */, 24, NDPI_PROTOCOL_OPENDNS },
@@ -167,3 +164,39 @@ static ndpi_network ndpi_protocol_opendns_protocol_list[] = {
/* End */
{ 0x0, 0, 0 }
};
static ndpi_network6 ndpi_protocol_opendns_protocol_list_6[] = {
{ "2620:0:cc0::", 48, NDPI_PROTOCOL_OPENDNS },
{ "2620:0:cc3::", 48, NDPI_PROTOCOL_OPENDNS },
{ "2620:0:cc4::", 46, NDPI_PROTOCOL_OPENDNS },
{ "2620:0:cc8::", 45, NDPI_PROTOCOL_OPENDNS },
{ "2620:119:10::", 46, NDPI_PROTOCOL_OPENDNS },
{ "2620:119:17::", 48, NDPI_PROTOCOL_OPENDNS },
{ "2620:119:30::", 48, NDPI_PROTOCOL_OPENDNS },
{ "2620:119:35::", 48, NDPI_PROTOCOL_OPENDNS },
{ "2620:119:53::", 48, NDPI_PROTOCOL_OPENDNS },
{ "2620:119:76::", 48, NDPI_PROTOCOL_OPENDNS },
{ "2620:119:fc::", 48, NDPI_PROTOCOL_OPENDNS },
{ "2a04:e4c0:10::", 48, NDPI_PROTOCOL_OPENDNS },
{ "2a04:e4c0:12::", 48, NDPI_PROTOCOL_OPENDNS },
{ "2a04:e4c0:14::", 46, NDPI_PROTOCOL_OPENDNS },
{ "2a04:e4c0:18::", 48, NDPI_PROTOCOL_OPENDNS },
{ "2a04:e4c0:20::", 46, NDPI_PROTOCOL_OPENDNS },
{ "2a04:e4c0:24::", 47, NDPI_PROTOCOL_OPENDNS },
{ "2a04:e4c0:30::", 47, NDPI_PROTOCOL_OPENDNS },
{ "2a04:e4c0:40::", 45, NDPI_PROTOCOL_OPENDNS },
{ "2a04:e4c0:48::", 48, NDPI_PROTOCOL_OPENDNS },
{ "2a04:e4c0:51::", 48, NDPI_PROTOCOL_OPENDNS },
{ "2a04:e4c0:52::", 47, NDPI_PROTOCOL_OPENDNS },
{ "2a04:e4c0:54::", 47, NDPI_PROTOCOL_OPENDNS },
{ "2a04:e4c0:59::", 48, NDPI_PROTOCOL_OPENDNS },
{ "2a04:e4c0:60::", 45, NDPI_PROTOCOL_OPENDNS },
{ "2a04:e4c4:1::", 48, NDPI_PROTOCOL_OPENDNS },
{ "2a04:e4c4:2::", 47, NDPI_PROTOCOL_OPENDNS },
{ "2a04:e4c4:4::", 48, NDPI_PROTOCOL_OPENDNS },
{ "2a04:e4c7:fe01::", 48, NDPI_PROTOCOL_OPENDNS },
{ "2a04:e4c7:fffd::", 48, NDPI_PROTOCOL_OPENDNS },
{ "2a04:e4c7:fffe::", 47, NDPI_PROTOCOL_OPENDNS },
/* End */
{ NULL, 0, 0 }
};