summaryrefslogtreecommitdiff
path: root/oui.h
diff options
context:
space:
mode:
Diffstat (limited to 'oui.h')
-rw-r--r--oui.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/oui.h b/oui.h
new file mode 100644
index 0000000..4ad616e
--- /dev/null
+++ b/oui.h
@@ -0,0 +1,19 @@
+/*
+ * netsniff-ng - the packet sniffing beast
+ * Copyright 2012 Daniel Borkmann.
+ * Subject to the GPL, version 2.
+ */
+
+#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 */