From bb60eb2e6af696443426f45360c697d03167507d Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 15 Nov 2015 15:47:43 +0100 Subject: 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 --- dissector_eth.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'dissector_eth.c') 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(ð_lay2); free_hash(ð_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(); } -- cgit v1.2.3-54-g00ecf