trafgen: Added option to pass macro/define for C preprocessor
[netsniff-ng.git] / trie.h
blobc46399192032ebea0449cdba82e3b5dcc9815eb5
1 #ifndef TRIE_H
2 #define TRIE_H
4 #include <netinet/in.h>
6 extern void trie_addr_lookup(char *buff, size_t len, int ipv4, int *fd,
7 struct sockaddr_storage *addr, size_t *alen);
8 extern int trie_addr_maybe_update(char *buff, size_t len, int ipv4, int fd,
9 struct sockaddr_storage *addr, size_t alen);
10 extern void trie_addr_remove(int fd);
11 extern void trie_addr_remove_addr(struct sockaddr_storage *addr, size_t alen);
12 extern void trie_init(void);
13 extern void trie_cleanup(void);
15 #endif /* TRIE_H */