/* * netsniff-ng - the packet sniffing beast * Copyright 2009, 2010 Daniel Borkmann. * Copyright 2014, 2015 Tobias Klauser * Subject to the GPL, version 2. */ #ifndef LOOKUP_H #define LOOKUP_H enum lookup_type { LT_PORTS_UDP, LT_PORTS_TCP, LT_ETHERTYPES, LT_OUI, LT_MAX, }; extern void lookup_init(enum lookup_type which); extern void lookup_cleanup(enum lookup_type which); extern const char *lookup_port_udp(unsigned int id); extern const char *lookup_port_tcp(unsigned int id); extern const char *lookup_ether_type(unsigned int id); extern const char *lookup_vendor(unsigned int id); static inline const char *lookup_vendor_str(unsigned int id) { return lookup_vendor(id) ? : "Unknown"; } #endif /* LOOKUP_H */ .png' alt='cgit logo'/> index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-07-19 15:24:46 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2016-07-19 19:03:32 -0700
commit1bb61840c4db64e27f0077dcfc5389e662022d40 (patch)
treee3aa4d1007bc2b19624d1ebb357a605ef5d04b12
parentd29b67d44a7cf6d02e7319c0e5a4b729a0aa00e7 (diff)
greybus: interface: add interface-type attribute
Add an interface-type string attribute that represents the detected interface type as either "dummy", "unipro", "greybus", or "unknown". Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Sandeep Patil <sspatil@google.com> Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat
-rw-r--r--drivers/staging/greybus/Documentation/sysfs-bus-greybus8
-rw-r--r--drivers/staging/greybus/interface.c25
-rw-r--r--drivers/staging/greybus/interface.h1
3 files changed, 34 insertions, 0 deletions
diff --git a/drivers/staging/greybus/Documentation/sysfs-bus-greybus b/drivers/staging/greybus/Documentation/sysfs-bus-greybus