lookup: Make lookup type and function names more generic
[netsniff-ng.git] / lookup.h
blob50a4d865c4f79443f38c66aa68ff8374f9632f97
1 /*
2 * netsniff-ng - the packet sniffing beast
3 * Copyright 2009, 2010 Daniel Borkmann.
4 * Copyright 2014, 2015 Tobias Klauser
5 * Subject to the GPL, version 2.
6 */
8 #ifndef LOOKUP_H
9 #define LOOKUP_H
11 enum lookup_type {
12 LT_PORTS_UDP,
13 LT_PORTS_TCP,
14 LT_ETHERTYPES,
15 LT_MAX,
18 extern void lookup_init(enum lookup_type which);
19 extern void lookup_cleanup(enum lookup_type which);
21 extern char *lookup_port_udp(unsigned int id);
22 extern char *lookup_port_tcp(unsigned int id);
23 extern char *lookup_ether_type(unsigned int id);
25 #endif /* LOOKUP_H */