netsniff-ng: Don't set IO prio when reading pcap file
[netsniff-ng.git] / dissector_80211.c
blob28f5526e5575649223d9eb77296592942ac018f3
1 /*
2 * netsniff-ng - the packet sniffing beast
3 * Copyright 2009, 2010 Daniel Borkmann.
4 * Subject to the GPL, version 2.
5 */
7 #include <stdint.h>
9 #include "hash.h"
10 #include "protos.h"
11 #include "dissector.h"
12 #include "dissector_80211.h"
13 #include "xmalloc.h"
14 #include "oui.h"
16 struct hash_table ieee80211_lay2;
18 static inline void dissector_init_entry(int type)
20 dissector_set_print_type(&ieee80211_ops, type);
23 static inline void dissector_init_exit(int type)
25 dissector_set_print_type(&none_ops, type);
28 static void dissector_init_layer_2(int type)
30 init_hash(&ieee80211_lay2);
31 // INSERT_HASH_PROTOS(blubber_ops, ieee80211_lay2);
32 for_each_hash_int(&ieee80211_lay2, dissector_set_print_type, type);
35 void dissector_init_ieee80211(int fnttype)
37 dissector_init_entry(fnttype);
38 dissector_init_layer_2(fnttype);
39 dissector_init_exit(fnttype);
40 dissector_init_oui();
43 void dissector_cleanup_ieee80211(void)
45 free_hash(&ieee80211_lay2);
46 dissector_cleanup_oui();