Removed test code
This commit is contained in:
@@ -1427,9 +1427,6 @@ extern "C" {
|
||||
|
||||
u_int32_t ndpi_quick_16_byte_hash(u_int8_t *in_16_bytes_long);
|
||||
|
||||
/* ******************************* */
|
||||
|
||||
ndpi_rules* ndpi_parse_rules(struct ndpi_detection_module_struct *ndpi_str, char *path);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1558,52 +1558,4 @@ struct ndpi_bin {
|
||||
} u;
|
||||
};
|
||||
|
||||
/* **************************** */
|
||||
|
||||
typedef struct {
|
||||
ndpi_ip_addr_t ip;
|
||||
u_int8_t cidr;
|
||||
u_int8_t ip_v6:1, _notused:7;
|
||||
u_int16_t l4_port;
|
||||
} ndpi_rule_peer;
|
||||
|
||||
typedef enum {
|
||||
rule_pass,
|
||||
rule_drop
|
||||
} ndpi_rule_action;
|
||||
|
||||
typedef struct _ndpi_rule {
|
||||
/* Ancillary information */
|
||||
u_int16_t id;
|
||||
char *description;
|
||||
|
||||
/* Keys */
|
||||
u_int8_t l4_proto;
|
||||
ndpi_rule_peer client, server; /* Network byte order */
|
||||
u_int16_t l7_proto;
|
||||
u_int8_t reverseable_rule:1 /* src <-> dst */, _not_used:7;
|
||||
|
||||
/* Rule actions */
|
||||
ndpi_rule_action action;
|
||||
|
||||
/* Internal use */
|
||||
struct _ndpi_rule *list_next; /* Linked list of rules */
|
||||
|
||||
} ndpi_rule;
|
||||
|
||||
/*
|
||||
Matching order
|
||||
- L7 protocol
|
||||
- match client/server
|
||||
|
||||
*/
|
||||
typedef struct {
|
||||
u_int32_t num_rules;
|
||||
ndpi_rule *root;
|
||||
|
||||
ndpi_rule *l7_rules[NDPI_LAST_IMPLEMENTED_PROTOCOL], *l7_any;
|
||||
|
||||
|
||||
} ndpi_rules;
|
||||
|
||||
#endif /* __NDPI_TYPEDEFS_H__ */
|
||||
|
||||
Reference in New Issue
Block a user