diff options
author | netblue30 <netblue30@protonmail.com> | 2023-07-15 08:18:08 -0400 |
---|---|---|
committer | netblue30 <netblue30@protonmail.com> | 2023-07-15 08:18:08 -0400 |
commit | d2802ce6068e5e9296e7b9a06a9c82e18ca23972 (patch) | |
tree | 7ffd465af9f5e809d9e1661c59b806c82f659bd0 /src/fnettrace/radix.h | |
parent | Merge pull request #5898 from kmk3/build-simplify-man (diff) | |
download | firejail-d2802ce6068e5e9296e7b9a06a9c82e18ca23972.tar.gz firejail-d2802ce6068e5e9296e7b9a06a9c82e18ca23972.tar.zst firejail-d2802ce6068e5e9296e7b9a06a9c82e18ca23972.zip |
fnettrace cleanup
Diffstat (limited to 'src/fnettrace/radix.h')
-rw-r--r-- | src/fnettrace/radix.h | 11 |
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 | ||
23 | typedef struct rnode_t { | ||
24 | struct rnode_t *zero; | ||
25 | struct rnode_t *one; | ||
26 | char *name; | ||
27 | uint32_t pkts; | ||
28 | } RNode; | ||
29 | |||
23 | extern int radix_nodes; | 30 | extern int radix_nodes; |
24 | char *radix_longest_prefix_match(uint32_t ip); | 31 | RNode *radix_longest_prefix_match(uint32_t ip); |
25 | char *radix_add(uint32_t ip, uint32_t mask, char *name); | 32 | RNode*radix_add(uint32_t ip, uint32_t mask, char *name); |
26 | void radix_print(void); | 33 | void radix_print(void); |
27 | void radix_squash(void); | 34 | void radix_squash(void); |
28 | 35 | ||