diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2023-10-26 20:15:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-26 20:15:44 +0200 |
commit | 611c3b66f0db3ca113db6fb71534231bb87b4cef (patch) | |
tree | 0dc777ffbf5a52e64b248b99b38620680d2a01d8 /src/include/ndpi_typedefs.h | |
parent | 1832d247b39e24ac7cc1b8417ca076bd61ae9c6e (diff) |
ipv6: add support for ipv6 addresses lists (#2113)
Diffstat (limited to 'src/include/ndpi_typedefs.h')
-rw-r--r-- | src/include/ndpi_typedefs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index 919a42501..51328943f 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -694,6 +694,7 @@ typedef enum { NDPI_PTREE_RISK_MASK = 0, NDPI_PTREE_RISK, NDPI_PTREE_PROTOCOLS, + NDPI_PTREE_PROTOCOLS6, NDPI_PTREE_MAX /* Last one! */ } ptree_type; @@ -1311,6 +1312,7 @@ struct ndpi_detection_module_struct { ndpi_patricia_tree_t *ip_risk_mask_ptree; ndpi_patricia_tree_t *ip_risk_ptree; ndpi_patricia_tree_t *protocols_ptree; /* IP-based protocol detection */ + ndpi_patricia_tree_t *protocols_ptree6; /* *** If you add a new Patricia tree, please update ptree_type above! *** */ @@ -1787,6 +1789,12 @@ typedef struct { u_int16_t value; } ndpi_network; +typedef struct { + char *network; + u_int8_t cidr; + u_int16_t value; +} ndpi_network6; + typedef u_int32_t ndpi_init_prefs; typedef enum { |