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.
13 #include "dissector.h"
14 #include "dissector_80211.h"
19 struct hash_table ieee80211_lay2
;
22 static inline void dissector_init_entry(int type
)
24 dissector_set_print_type(&ieee80211_ops
, type
);
27 static inline void dissector_init_exit(int type
)
29 dissector_set_print_type(&none_ops
, type
);
32 static void dissector_init_layer_2(int type
)
34 init_hash(&ieee80211_lay2
);
35 // INSERT_HASH_PROTOS(blubber_ops, ieee80211_lay2);
36 for_each_hash_int(&ieee80211_lay2
, dissector_set_print_type
, type
);
39 static inline void dissector_init_entry(int type
) {}
40 static inline void dissector_init_exit(int type
) {}
41 static void dissector_init_layer_2(int type
) {}
42 #endif /* __WITH_PROTOS */
44 void dissector_init_ieee80211(int fnttype
)
46 dissector_init_entry(fnttype
);
47 dissector_init_layer_2(fnttype
);
48 dissector_init_exit(fnttype
);
52 void dissector_cleanup_ieee80211(void)
54 free_hash(&ieee80211_lay2
);
55 dissector_cleanup_oui();