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_80211.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_80211.c')
-rw-r--r-- | dissector_80211.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/dissector_80211.c b/dissector_80211.c index 28f5526..ecaf355 100644 --- a/dissector_80211.c +++ b/dissector_80211.c @@ -10,8 +10,7 @@ #include "protos.h" #include "dissector.h" #include "dissector_80211.h" -#include "xmalloc.h" -#include "oui.h" +#include "lookup.h" struct hash_table ieee80211_lay2; @@ -37,11 +36,11 @@ void dissector_init_ieee80211(int fnttype) dissector_init_entry(fnttype); dissector_init_layer_2(fnttype); dissector_init_exit(fnttype); - dissector_init_oui(); + lookup_init(LT_OUI); } void dissector_cleanup_ieee80211(void) { free_hash(&ieee80211_lay2); - dissector_cleanup_oui(); + lookup_cleanup(LT_OUI); } |