protos: remove wrong inlining
[netsniff-ng.git] / src / dissector_80211.c
blob427164e69c48a7cabe1167b6eb6f487744210bda
1 /*
2 * netsniff-ng - the packet sniffing beast
3 * By Daniel Borkmann <daniel@netsniff-ng.org>
4 * Copyright 2009, 2010 Daniel Borkmann.
5 * Subject to the GPL, version 2.
6 */
8 #include <stdint.h>
10 #include "hash.h"
11 #include "protos.h"
12 #include "pkt_buff.h"
13 #include "dissector.h"
14 #include "dissector_80211.h"
15 #include "xmalloc.h"
16 #include "xstring.h"
17 #include "oui.h"
19 struct hash_table ieee80211_lay2;
21 static inline void dissector_init_entry(int type)
23 // dissector_set_print_type(&ieee80211_mac_ops, type);
26 static inline void dissector_init_exit(int type)
28 // dissector_set_print_type(&none_ops, type);
31 static void dissector_init_layer_2(int type)
33 init_hash(&ieee80211_lay2);
34 // INSERT_HASH_PROTOS(arp_ops, eth_lay2);
35 // INSERT_HASH_PROTOS(vlan_ops, eth_lay2);
36 // INSERT_HASH_PROTOS(ipv4_ops, eth_lay2);
37 // INSERT_HASH_PROTOS(ipv6_ops, eth_lay2);
38 for_each_hash_int(&ieee80211_lay2, dissector_set_print_type, type);
41 void dissector_init_ieee80211(int fnttype)
43 dissector_init_entry(fnttype);
44 dissector_init_layer_2(fnttype);
45 dissector_init_exit(fnttype);
46 dissector_init_oui();
49 void dissector_cleanup_ieee80211(void)
51 free_hash(&ieee80211_lay2);
52 dissector_cleanup_oui();