diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-11-16 08:46:00 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-11-16 08:46:00 +0100 |
commit | 04b2adac4e5d460f39454b59ed4f2d3374cb796b (patch) | |
tree | caf1aeb824fcfeba9437dea02741dd9921ad718b /dissector_sll.c | |
parent | 7cec7def47bf55762c422508bac1b6e2e142b24e (diff) |
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 <tklauser@distanz.ch>
Diffstat (limited to 'dissector_sll.c')
-rw-r--r-- | dissector_sll.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |