/* * netsniff-ng - the packet sniffing beast * Copyright 2009, 2010 Daniel Borkmann. * Subject to the GPL, version 2. */ #ifndef DISSECTOR_ETH_H #define DISSECTOR_ETH_H #include "hash.h" #include "proto.h" #include "protos.h" #include "tprintf.h" #include "xutils.h" #include "oui.h" extern struct hash_table eth_lay2; extern struct hash_table eth_lay3; extern void dissector_init_ethernet(int fnttype); extern void dissector_cleanup_ethernet(void); extern char *lookup_port_udp(unsigned int id); extern char *lookup_port_tcp(unsigned int id); extern char *lookup_ether_type(unsigned int id); #ifdef __WITH_PROTOS static inline struct protocol *dissector_get_ethernet_entry_point(void) { return ðernet_ops; } static inline struct protocol *dissector_get_ethernet_exit_point(void) { return &none_ops; } #else static inline struct protocol *dissector_get_ethernet_entry_point(void) { return NULL; } static inline struct protocol *dissector_get_ethernet_exit_point(void) { return NULL; } #endif /* __WITH_PROTOS */ #endif /* DISSECTOR_ETH_H */ ='master'>master net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/greybus/es2.c24
1 files changed, 9 insertions, 15 deletions
diff --git a/drivers/staging/greybus/es2.c b/drivers/staging/greybus/es2.ce
98ca2336a61da4673f5f059cb370064e12f7f35f /drivers/staging
parentb6c1bd3a8e466759fbfd2a649a9058d51ff136c0 (diff)
greybus: es2: remove struct cport_to_ep
We were not really using this structure at all, it was only returning '0' when asked what cport matched to what pair, so remove it all. Reviewed-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/greybus/es2.c35
1 files changed, 1 insertions, 34 deletions
diff --git a/drivers/staging/greybus/es2.c b/drivers/staging/greybus/es2.c