ipv6: add support for ipv6 addresses lists (#2113)
This commit is contained in:
@@ -165,6 +165,9 @@ extern "C" {
|
||||
u_int16_t ndpi_network_port_ptree_match(struct ndpi_detection_module_struct *ndpi_struct,
|
||||
struct in_addr *pin /* network byte order */,
|
||||
u_int16_t port /* network byte order */);
|
||||
u_int16_t ndpi_network_port_ptree6_match(struct ndpi_detection_module_struct *ndpi_struct,
|
||||
struct in6_addr *pin,
|
||||
u_int16_t port /* network byte order */);
|
||||
|
||||
/**
|
||||
* Creates a protocol match that does not contain any hostnames.
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user