summaryrefslogtreecommitdiff
path: root/oui.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-11-16 08:46:00 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-11-16 08:46:00 +0100
commit04b2adac4e5d460f39454b59ed4f2d3374cb796b (patch)
treecaf1aeb824fcfeba9437dea02741dd9921ad718b /oui.h
parent7cec7def47bf55762c422508bac1b6e2e142b24e (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 'oui.h')
-rw-r--r--oui.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/oui.h b/oui.h
deleted file mode 100644
index 564e4a1..0000000
--- a/oui.h
+++ /dev/null
@@ -1,13 +0,0 @@
-#ifndef OUI_H
-#define OUI_H
-
-extern const char *lookup_vendor(unsigned int id);
-extern void dissector_init_oui(void);
-extern void dissector_cleanup_oui(void);
-
-static inline const char *lookup_vendor_str(unsigned int id)
-{
- return lookup_vendor(id) ? : "Unknown";
-}
-
-#endif /* OUI_H */