Introduced custom protocols with IP and (optional) port support
Example - Single IP address ip:213.75.170.11@CustomProtocol - IP address with CIDR ip:213.75.170.11/32@CustomProtocol - IP address with CIDR and port ip:213.75.170.11/32:443@CustomProtocol Please note that there are some restrictions on the port usage. They have been listed in example/protos.txt
This commit is contained in:
+3
-1
@@ -104,7 +104,9 @@ union patricia_node_value_t {
|
||||
void *user_data;
|
||||
|
||||
/* User-defined values */
|
||||
u_int32_t user_value;
|
||||
struct {
|
||||
u_int16_t user_value, additional_user_value;
|
||||
} uv;
|
||||
};
|
||||
|
||||
typedef struct _patricia_node_t {
|
||||
|
||||
+1
-2
@@ -513,8 +513,7 @@ ndpi_patricia_search_best2 (patricia_tree_t *patricia, prefix_t *prefix, int inc
|
||||
node->bit);
|
||||
#endif /* PATRICIA_DEBUG */
|
||||
node = node->r;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
#ifdef PATRICIA_DEBUG
|
||||
if(node->prefix)
|
||||
fprintf (stderr, "patricia_search_best: take left %s/%d\n",
|
||||
|
||||
Reference in New Issue
Block a user