/* * netsniff-ng - the packet sniffing beast * Copyright 2009, 2010 Daniel Borkmann. * Subject to the GPL, version 2. */ #include <stdint.h> #include "hash.h" #include "protos.h" #include "dissector.h" #include "dissector_80211.h" #include "lookup.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); lookup_init(LT_OUI); } void dissector_cleanup_ieee80211(void) { free_hash(&ieee80211_lay2); lookup_cleanup(LT_OUI); } ubmit();'> <option value='emaclite-cleanup'>emaclite-cleanup</option> <option value='master'>master</option> <option value='nds-private-remove' selected='selected'>nds-private-remove</option> <option value='packet-loop-back'>packet-loop-back</option> <option value='packet-rx-pump-back'>packet-rx-pump-back</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table> <table class='tabs'><tr><td> <a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&id=cb4281528b62207918b1e95827cad7527aa4dbaa'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/fs/bfs?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/fs/bfs?h=nds-private-remove&id=cb4281528b62207918b1e95827cad7527aa4dbaa'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/fs/bfs?h=nds-private-remove&id=cb4281528b62207918b1e95827cad7527aa4dbaa'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/fs/bfs?h=nds-private-remove&id=cb4281528b62207918b1e95827cad7527aa4dbaa'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/fs/bfs'> <input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='cb4281528b62207918b1e95827cad7527aa4dbaa'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&id=cb4281528b62207918b1e95827cad7527aa4dbaa'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/fs?h=nds-private-remove&id=cb4281528b62207918b1e95827cad7527aa4dbaa'>fs</a>/<a href='/cgit.cgi/linux/net-next.git/log/fs/bfs?h=nds-private-remove&id=cb4281528b62207918b1e95827cad7527aa4dbaa'>bfs</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/fs/bfs?h=nds-private-remove&id=cb4281528b62207918b1e95827cad7527aa4dbaa&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>