summaryrefslogtreecommitdiff
path: root/lookup.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-11-15 15:47:43 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-11-15 15:47:43 +0100
commitbb60eb2e6af696443426f45360c697d03167507d (patch)
treec9d8099b079702409909102fefd1e8cab7b16dff /lookup.h
parent16afc315b88661fd9cb15f97d886cac221287564 (diff)
lookup: Make lookup type and function names more generic
It's not only ports we look up, make the names a bit more generic. Preparatory patch before moving OUI lookup to the lookup module. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'lookup.h')
-rw-r--r--lookup.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/lookup.h b/lookup.h
index 7cc2d31..50a4d86 100644
--- a/lookup.h
+++ b/lookup.h
@@ -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);