aboutsummaryrefslogtreecommitdiffstats
path: root/src/fnettrace/radix.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fnettrace/radix.h')
-rw-r--r--src/fnettrace/radix.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/fnettrace/radix.h b/src/fnettrace/radix.h
index 349d0e4b8..60a64f18f 100644
--- a/src/fnettrace/radix.h
+++ b/src/fnettrace/radix.h
@@ -20,9 +20,16 @@
20#ifndef RADIX_H 20#ifndef RADIX_H
21#define RADIX_H 21#define RADIX_H
22 22
23typedef struct rnode_t {
24 struct rnode_t *zero;
25 struct rnode_t *one;
26 char *name;
27 uint32_t pkts;
28} RNode;
29
23extern int radix_nodes; 30extern int radix_nodes;
24char *radix_longest_prefix_match(uint32_t ip); 31RNode *radix_longest_prefix_match(uint32_t ip);
25char *radix_add(uint32_t ip, uint32_t mask, char *name); 32RNode*radix_add(uint32_t ip, uint32_t mask, char *name);
26void radix_print(void); 33void radix_print(void);
27void radix_squash(void); 34void radix_squash(void);
28 35