summaryrefslogtreecommitdiff
path: root/dissector_eth.c
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 /dissector_eth.c
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 'dissector_eth.c')
-rw-r--r--dissector_eth.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/dissector_eth.c b/dissector_eth.c
index 60d8429..b2c44df 100644
--- a/dissector_eth.c
+++ b/dissector_eth.c
@@ -70,9 +70,9 @@ void dissector_init_ethernet(int fnttype)
dissector_init_oui();
- lookup_init_ports(PORTS_UDP);
- lookup_init_ports(PORTS_TCP);
- lookup_init_ports(PORTS_ETHER);
+ lookup_init(LT_PORTS_UDP);
+ lookup_init(LT_PORTS_TCP);
+ lookup_init(LT_ETHERTYPES);
}
void dissector_cleanup_ethernet(void)
@@ -80,9 +80,9 @@ void dissector_cleanup_ethernet(void)
free_hash(&eth_lay2);
free_hash(&eth_lay3);
- lookup_cleanup_ports(PORTS_ETHER);
- lookup_cleanup_ports(PORTS_TCP);
- lookup_cleanup_ports(PORTS_UDP);
+ lookup_cleanup(LT_ETHERTYPES);
+ lookup_cleanup(LT_PORTS_TCP);
+ lookup_cleanup(LT_PORTS_UDP);
dissector_cleanup_oui();
}