From 04b2adac4e5d460f39454b59ed4f2d3374cb796b Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 16 Nov 2015 08:46:00 +0100 Subject: lookup: Use lookup module for OUI lookup as well Do not needlessly duplicate code between the oui and the lookup module. Instead, add an additional lookup table for OUIs to the lookup module. Signed-off-by: Tobias Klauser --- dissector_sll.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dissector_sll.c') diff --git a/dissector_sll.c b/dissector_sll.c index ac8f017..cde0d54 100644 --- a/dissector_sll.c +++ b/dissector_sll.c @@ -3,13 +3,13 @@ * Subject to the GPL, version 2. */ -#include "oui.h" #include "protos.h" #include "pcap_io.h" #include "pkt_buff.h" #include "dissector.h" #include "dissector_sll.h" #include "dissector_eth.h" +#include "lookup.h" static char *pkt_type2str(uint8_t pkttype) { @@ -98,10 +98,10 @@ void dissector_init_sll(int fnttype) { dissector_set_print_type(&sll_ops, fnttype); dissector_set_print_type(&none_ops, fnttype); - dissector_init_oui(); + lookup_init(LT_OUI); } void dissector_cleanup_sll(void) { - dissector_cleanup_oui(); + lookup_cleanup(LT_OUI); } -- cgit v1.2.3-54-g00ecf