summaryrefslogtreecommitdiff
path: root/oui.h
blob: 4ad616e0c2df9f31c8e3e08ddfc2d45cda6705fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 */
nly
Diffstat (limited to 'Documentation')
ion value='1'>ssdiff
authorRui Miguel Silva <rui.silva@linaro.org>2016-07-15 12:16:55 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2016-07-16 08:05:33 +0900
commit7a0d4eae83e7dbabd02c744ec3aa0ed542ed6181 (patch)
tree193948f8e32ac328055af1025c1869e7b4415903 /drivers/staging/greybus
parentc10b4ea3b23fdd1d7db531b316ba75fd2578fc2a (diff)
greybus: power_supply: add missing defines present in the specification
Some of the Greybus properties values (capacity level and scope) even though they are defined in the specification were missing from the protocol header. They still match the kernel ones, but they should be present in there for protocol sake. Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org> Reviewed-by: Sandeep Patil <sspatil@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus')
-rw-r--r--drivers/staging/greybus/greybus_protocols.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/staging/greybus/greybus_protocols.h b/drivers/staging/greybus/greybus_protocols.h