/* * netsniff-ng - the packet sniffing beast * Copyright 2009, 2010 Daniel Borkmann. * Subject to the GPL, version 2. */ #include #include "hash.h" #include "protos.h" #include "pkt_buff.h" #include "dissector.h" #include "dissector_80211.h" #include "xmalloc.h" #include "oui.h" struct hash_table ieee80211_lay2; #ifdef HAVE_DISSECTOR_PROTOS static inline void dissector_init_entry(int type) { dissector_set_print_type(&ieee80211_ops, type); } static inline void dissector_init_exit(int type) { dissector_set_print_type(&none_ops, type); } static void dissector_init_layer_2(int type) { init_hash(&ieee80211_lay2); // INSERT_HASH_PROTOS(blubber_ops, ieee80211_lay2); for_each_hash_int(&ieee80211_lay2, dissector_set_print_type, type); } #else static inline void dissector_init_entry(int type __maybe_unused) {} static inline void dissector_init_exit(int type __maybe_unused) {} static void dissector_init_layer_2(int type __maybe_unused) {} #endif void dissector_init_ieee80211(int fnttype) { dissector_init_entry(fnttype); dissector_init_layer_2(fnttype); dissector_init_exit(fnttype); dissector_init_oui(); } void dissector_cleanup_ieee80211(void) { free_hash(&ieee80211_lay2); dissector_cleanup_oui(); } lue='packet-loop-back'>packet-loop-back net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/fs/afs/internal.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2017-02-10 16:34:07 +0000
committerDavid Howells <dhowells@redhat.com>2017-02-10 16:34:17 +0000
commitff548773106ec7f8031bc6172e0234bd2a02c19c (patch)
tree1bae4bf8247b6e556f03d4a13274666eb1ea620b /fs/afs/internal.h
parenta507c346b7fdc97296fa74626df49fdb7296a04e (diff)
afs: Move UUID struct to linux/uuid.h
Move the afs_uuid struct to linux/uuid.h, rename it to uuid_v1 and change the u16/u32 fields to __be16/__be32 instead so that the structure can be cast to a 16-octet network-order buffer. Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de
Diffstat (limited to 'fs/afs/internal.h')
-rw-r--r--fs/afs/internal.h27
1 files changed, 2 insertions, 25 deletions
diff --git a/fs/afs/internal.h b/fs/afs/internal.h