netsniff-ng: also support stdin/stdout for -i/-o
[netsniff-ng.git] / trie.h
blob4dfe87b770e14b2f58edcfcd2c6e305bf851a06b
1 /*
2 * netsniff-ng - the packet sniffing beast
3 * By Daniel Borkmann <daniel@netsniff-ng.org>
4 * Copyright 2011 Daniel Borkmann.
5 * Subject to the GPL, version 2.
6 */
8 #ifndef TRIE_H
9 #define TRIE_H
11 #include <netinet/in.h>
13 extern void trie_addr_lookup(char *buff, size_t len, int ipv4, int *fd,
14 struct sockaddr_storage *addr, size_t *alen);
15 extern int trie_addr_maybe_update(char *buff, size_t len, int ipv4, int fd,
16 struct sockaddr_storage *addr, size_t alen);
17 extern void trie_addr_remove(int fd);
18 extern void trie_addr_remove_addr(struct sockaddr_storage *addr, size_t alen);
19 extern void trie_init(void);
20 extern void trie_cleanup(void);
22 #endif /* TRIE_H */