Revision 51762a45 filter/filter.h

View differences:

filter/filter.h
80 80
int same_tree(struct f_tree *t1, struct f_tree *t2);
81 81
void tree_format(struct f_tree *t, buffer *buf);
82 82

  
83
struct f_trie *f_new_trie(linpool *lp);
84
void trie_add_prefix(struct f_trie *t, ip_addr px, int plen, int l, int h);
83
struct f_trie *f_new_trie(linpool *lp, uint node_size);
84
void *trie_add_prefix(struct f_trie *t, ip_addr px, int plen, int l, int h);
85 85
int trie_match_prefix(struct f_trie *t, ip_addr px, int plen);
86 86
int trie_same(struct f_trie *t1, struct f_trie *t2);
87 87
void trie_format(struct f_trie *t, buffer *buf);
......
204 204
{
205 205
  linpool *lp;
206 206
  int zero;
207
  struct f_trie_node root;
207
  uint node_size;
208
  struct f_trie_node root[0];		/* Root trie node follows */
208 209
};
209 210

  
210 211
#define NEW_F_VAL struct f_val * val; val = cfg_alloc(sizeof(struct f_val));

Also available in: Unified diff