diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/include/ndpi_typedefs.h | 8 | ||||
-rw-r--r-- | src/lib/ndpi_main.c | 17 |
2 files changed, 22 insertions, 3 deletions
diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index 64286ef3c..481097c2f 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -1060,7 +1060,12 @@ typedef enum { #define NUM_BREEDS (NDPI_PROTOCOL_UNRATED+1) -/* Abstract categories to group the protocols. */ +/* + Abstract categories to group the protocols. + + IMPORTANT + Keep in sync with categories[] on ndpi_main.c +*/ typedef enum { NDPI_PROTOCOL_CATEGORY_UNSPECIFIED = 0, /* For general services and unknown protocols */ NDPI_PROTOCOL_CATEGORY_MEDIA, /* Multimedia and streaming */ @@ -1144,6 +1149,7 @@ typedef enum { NDPI_PROTOCOL_CATEGORY_HARDWARE_SOFTWARE, NDPI_PROTOCOL_CATEGORY_DATING, NDPI_PROTOCOL_CATEGORY_TRAVEL, + NDPI_PROTOCOL_CATEGORY_FOOD, /* IMPORTANT diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 8b040925d..cc5849df5 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -3414,8 +3414,21 @@ static const char *categories[NDPI_PROTOCOL_NUM_CATEGORIES] = { "Crypto_Currency", "Gambling", "Health", - "ArtifIntelligence" - + "ArtifIntelligence", + "Finance", + "News", + "Sport", + "Business", + "Internet", + "BlockChain/Cypto", + "Blog/Forum", + "Government", + "Education", + "CNR/Proxy", + "Hw/Sw", + "Dating", + "Travel", + "Food" }; #if !defined(NDPI_CFFI_PREPROCESSING) && defined(__linux__) |