diff options
Diffstat (limited to 'lookup.h')
-rw-r--r-- | lookup.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -1,22 +1,22 @@ /* * netsniff-ng - the packet sniffing beast * Copyright 2009, 2010 Daniel Borkmann. - * Copyright 2014 Tobias Klauser + * Copyright 2014, 2015 Tobias Klauser * Subject to the GPL, version 2. */ #ifndef LOOKUP_H #define LOOKUP_H -enum ports { - PORTS_UDP, - PORTS_TCP, - PORTS_ETHER, - PORTS_MAX, +enum lookup_type { + LT_PORTS_UDP, + LT_PORTS_TCP, + LT_ETHERTYPES, + LT_MAX, }; -extern void lookup_init_ports(enum ports which); -extern void lookup_cleanup_ports(enum ports which); +extern void lookup_init(enum lookup_type which); +extern void lookup_cleanup(enum lookup_type which); extern char *lookup_port_udp(unsigned int id); extern char *lookup_port_tcp(unsigned int id); |