diff options
Diffstat (limited to 'oui.h')
-rw-r--r-- | oui.h | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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 */ |