2 * netsniff-ng - the packet sniffing beast
3 * Copyright 2009, 2010 Daniel Borkmann.
4 * Subject to the GPL, version 2.
11 #include "dissector.h"
12 #include "dissector_80211.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
);
43 void dissector_cleanup_ieee80211(void)
45 free_hash(&ieee80211_lay2
);
46 dissector_cleanup_oui();