/* * 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 "dissector.h" #include "dissector_80211.h" #include "xmalloc.h" #include "oui.h" struct hash_table ieee80211_lay2; 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); } 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(); } /> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@gmail.com>2016-05-17 14:57:53 +0200
committerThierry Reding <thierry.reding@gmail.com>2016-05-17 14:57:53 +0200
commitd2a3f206846b4b140aa1fe5be29499e9191fb1fe (patch)
treeea4582d801f27d0e943d66059381193a4cdfd14c
parentbf5dd9abcb4443bbab8cb63b9d82b96a4a45c802 (diff)
parent8c12ad8e916ee0477f7a0a0f00b0a87b9a21ebf7 (diff)
Merge branch 'for-4.7/pwm-regulator' into for-next