include/wipal/wifi/frame/dissector/default_hooks.hxx

00001 
00002 /*
00003  * WiPal - A library and a set of tools to manipulate wireless traces.
00004  * Copyright (C) 2007  Universite Pierre et Marie Curie - Paris 6
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00019  * MA  02110-1301  USA
00020  *
00021  * Author: Thomas Claveirole <thomas.claveirole@lip6.fr>
00022  */
00023 #ifndef WIFI_FRAME_DISSECTOR_DEFAULT_HOOKS_HXX_
00024 # define WIFI_FRAME_DISSECTOR_DEFAULT_HOOKS_HXX_
00025 
00026 # include "default_hooks.hh"
00027 
00028 namespace wifi
00029 {
00030 
00031   namespace frame
00032   {
00033 
00034     /*---------------------.
00035     | Invalid frames hooks |
00036     `---------------------*/
00037 
00038     inline
00039     void
00040     dissector_default_hooks::
00041     invalid_type_or_subtype_hook(const void*, size_t, status)
00042     {
00043     }
00044 
00045     inline
00046     void
00047     dissector_default_hooks::invalid_type_hook(const void*, size_t)
00048     {
00049     }
00050 
00051     inline
00052     void
00053     dissector_default_hooks::invalid_subtype_hook(const void*, size_t, status)
00054     {
00055     }
00056 
00057     inline
00058     void
00059     dissector_default_hooks::
00060     invalid_management_subtype_hook(const mgt::header*, size_t)
00061     {
00062     }
00063 
00064     inline
00065     void
00066     dissector_default_hooks::
00067     invalid_control_subtype_hook(const void*, size_t)
00068     {
00069     }
00070 
00071     inline
00072     void
00073     dissector_default_hooks::
00074     invalid_data_subtype_hook(const void*, size_t, status)
00075     {
00076     }
00077 
00078     /*------------.
00079     | Basic hooks |
00080     `------------*/
00081 
00082     inline
00083     void
00084     dissector_default_hooks::frame_hook(const void*, size_t)
00085     {
00086     }
00087 
00088     inline
00089     void
00090     dissector_default_hooks::
00091     addr_hook(const void*, size_t, unsigned, const addr&)
00092     {
00093     }
00094 
00095     inline
00096     void
00097     dissector_default_hooks::
00098     seq_ctl_hook(const void*, size_t, unsigned, unsigned)
00099     {
00100     }
00101 
00102     inline
00103     void
00104     dissector_default_hooks::end_of_frame_headers_hook(const void*,
00105                                                        size_t,
00106                                                        const void*)
00107     {
00108     }
00109 
00110     inline
00111     void
00112     dissector_default_hooks::end_of_frame_hook(const void*, size_t, status)
00113     {
00114     }
00115 
00116     inline
00117     void
00118     dissector_default_hooks::management_hook(const mgt::header*, size_t)
00119     {
00120     }
00121 
00122     inline
00123     void
00124     dissector_default_hooks::control_hook(const void*, size_t)
00125     {
00126     }
00127 
00128     inline
00129     void
00130     dissector_default_hooks::data_hook(const void*, size_t)
00131     {
00132     }
00133 
00134     /*-----------------.
00135     | Truncation hooks |
00136     `-----------------*/
00137 
00138     inline
00139     void
00140     dissector_default_hooks::truncated_frame_hook(const void*, size_t, status)
00141     {
00142     }
00143 
00144     inline
00145     void
00146     dissector_default_hooks::truncated_unknown_frame_hook(const void*, size_t)
00147     {
00148     }
00149 
00150     inline
00151     void
00152     dissector_default_hooks::
00153     truncated_management_frame_hook(const mgt::header*, size_t, status)
00154     {
00155     }
00156 
00157     inline
00158     void
00159     dissector_default_hooks::
00160     truncated_ps_poll_frame_hook(const ctl::ps_poll::header*, size_t, status)
00161     {
00162     }
00163 
00164     inline
00165     void
00166     dissector_default_hooks::
00167     truncated_rts_frame_hook(const ctl::rts::header*, size_t, status)
00168     {
00169     }
00170 
00171     inline
00172     void
00173     dissector_default_hooks::
00174     truncated_cf_end_frame_hook(const ctl::cf_end::header*, size_t, status)
00175     {
00176     }
00177 
00178     inline
00179     void
00180     dissector_default_hooks::
00181     truncated_cf_end_cf_ack_frame_hook(const ctl::cf_end_cf_ack::header*,
00182                                        size_t, status)
00183     {
00184     }
00185 
00186     inline
00187     void
00188     dissector_default_hooks::
00189     truncated_cts_frame_hook(const ctl::cts::header*, size_t)
00190     {
00191     }
00192 
00193     inline
00194     void
00195     dissector_default_hooks::
00196     truncated_ack_frame_hook(const ctl::ack::header*, size_t)
00197     {
00198     }
00199 
00200     inline
00201     void
00202     dissector_default_hooks::
00203     truncated_data_frame_hook(const void*, size_t, status)
00204     {
00205     }
00206 
00207     /*-----------------.
00208     | Management hooks |
00209     `-----------------*/
00210 
00211 
00212     // Field hooks.
00213 
00214 
00215     inline
00216     void
00217     dissector_default_hooks::management_addr1_hook(const mgt::header*, size_t)
00218     {
00219     }
00220 
00221     inline
00222     void
00223     dissector_default_hooks::management_addr2_hook(const mgt::header*, size_t)
00224     {
00225     }
00226 
00227     inline
00228     void
00229     dissector_default_hooks::management_addr3_hook(const mgt::header*, size_t)
00230     {
00231     }
00232 
00233     inline
00234     void
00235     dissector_default_hooks::
00236     management_seq_ctl_hook(const mgt::header*, size_t, unsigned, unsigned)
00237     {
00238     }
00239 
00240 
00241     // Inidividual frame subtypes.
00242 
00243 
00244     inline
00245     void
00246     dissector_default_hooks::beacon_hook(const mgt::header*, size_t)
00247     {
00248     }
00249 
00250     inline
00251     void
00252     dissector_default_hooks::assoc_req_hook(const mgt::header*, size_t)
00253     {
00254     }
00255 
00256     inline
00257     void
00258     dissector_default_hooks::assoc_resp_hook(const mgt::header*, size_t)
00259     {
00260     }
00261 
00262     inline
00263     void
00264     dissector_default_hooks::reassoc_req_hook(const mgt::header*, size_t)
00265     {
00266     }
00267 
00268     inline
00269     void
00270     dissector_default_hooks::reassoc_resp_hook(const mgt::header*, size_t)
00271     {
00272     }
00273 
00274     inline
00275     void
00276     dissector_default_hooks::probe_req_hook(const mgt::header*, size_t)
00277     {
00278     }
00279 
00280     inline
00281     void
00282     dissector_default_hooks::probe_resp_hook(const mgt::header*, size_t)
00283     {
00284     }
00285 
00286     inline
00287     void
00288     dissector_default_hooks::atim_hook(const mgt::header*, size_t)
00289     {
00290     }
00291 
00292     inline
00293     void
00294     dissector_default_hooks::disassoc_hook(const mgt::header*, size_t)
00295     {
00296     }
00297 
00298     inline
00299     void
00300     dissector_default_hooks::auth_hook(const mgt::header*, size_t)
00301     {
00302     }
00303 
00304     inline
00305     void
00306     dissector_default_hooks::deauth_hook(const mgt::header*, size_t)
00307     {
00308     }
00309 
00310 
00311     /*--------------.
00312     | Control hooks |
00313     `--------------*/
00314 
00315 
00316     // Individual frame subtypes.
00317 
00318 
00319     inline
00320     void
00321     dissector_default_hooks::ps_poll_hook(const ctl::ps_poll::header*, size_t)
00322     {
00323     }
00324 
00325     inline
00326     void
00327     dissector_default_hooks::rts_hook(const ctl::rts::header*, size_t)
00328     {
00329     }
00330 
00331     inline
00332     void
00333     dissector_default_hooks::cf_end_hook(const ctl::cf_end::header*, size_t)
00334     {
00335     }
00336 
00337     inline
00338     void
00339     dissector_default_hooks::
00340     cf_end_cf_ack_hook(const ctl::cf_end_cf_ack::header*, size_t)
00341     {
00342     }
00343 
00344     inline
00345     void
00346     dissector_default_hooks::cts_hook(const ctl::cts::header*, size_t)
00347     {
00348     }
00349 
00350     inline
00351     void
00352     dissector_default_hooks::ack_hook(const ctl::ack::header*, size_t)
00353     {
00354     }
00355 
00356 
00357     // Field hooks //
00358 
00359 
00360     // PS Poll.
00361 
00362     inline
00363     void
00364     dissector_default_hooks::
00365     ps_poll_addr1_hook(const ctl::ps_poll::header*, size_t)
00366     {
00367     }
00368 
00369     inline
00370     void
00371     dissector_default_hooks::
00372     ps_poll_addr2_hook(const ctl::ps_poll::header*, size_t)
00373     {
00374     }
00375 
00376 
00377     // RTS.
00378 
00379     inline
00380     void
00381     dissector_default_hooks::rts_addr1_hook(const ctl::rts::header*, size_t)
00382     {
00383     }
00384 
00385     inline
00386     void
00387     dissector_default_hooks::rts_addr2_hook(const ctl::rts::header*, size_t)
00388     {
00389     }
00390 
00391 
00392     // CF-End.
00393 
00394     inline
00395     void
00396     dissector_default_hooks::
00397     cf_end_addr1_hook(const ctl::cf_end::header*, size_t)
00398     {
00399     }
00400 
00401     inline
00402     void
00403     dissector_default_hooks::
00404     cf_end_addr2_hook(const ctl::cf_end::header*, size_t)
00405     {
00406     }
00407 
00408 
00409     // CF-End + CF-Ack.
00410 
00411     inline
00412     void
00413     dissector_default_hooks::
00414     cf_end_cf_ack_addr1_hook(const ctl::cf_end_cf_ack::header*, size_t)
00415     {
00416     }
00417 
00418     inline
00419     void
00420     dissector_default_hooks::
00421     cf_end_cf_ack_addr2_hook(const ctl::cf_end_cf_ack::header*, size_t)
00422     {
00423     }
00424 
00425 
00426     // CTS.
00427 
00428     inline
00429     void
00430     dissector_default_hooks::
00431     cts_addr1_hook(const ctl::ack::header*, size_t)
00432     {
00433     }
00434 
00435 
00436     // Ack.
00437 
00438     inline
00439     void
00440     dissector_default_hooks::ack_addr1_hook(const ctl::ack::header*, size_t)
00441     {
00442     }
00443 
00444 
00445     /*-----------.
00446     | Data hooks |
00447     `-----------*/
00448 
00449 
00450     // Field hooks.
00451 
00452 
00453     inline
00454     void
00455     dissector_default_hooks::data_addr1_hook(const void*, size_t)
00456     {
00457     }
00458 
00459     inline
00460     void
00461     dissector_default_hooks::data_addr2_hook(const void*, size_t)
00462     {
00463     }
00464 
00465     inline
00466     void
00467     dissector_default_hooks::data_addr3_hook(const void*, size_t)
00468     {
00469     }
00470 
00471     inline
00472     void
00473     dissector_default_hooks::data_addr4_hook(const void*, size_t)
00474     {
00475     }
00476 
00477     inline
00478     void
00479     dissector_default_hooks::
00480     data_seq_ctl_hook(const void*, size_t, unsigned, unsigned)
00481     {
00482     }
00483 
00484 
00485     // Individual frame subtypes.
00486 
00487     inline
00488     void
00489     dissector_default_hooks::data_only_hook(const void*, size_t, status)
00490     {
00491     }
00492 
00493     inline
00494     void
00495     dissector_default_hooks::data_cf_ack_hook(const void*, size_t, status)
00496     {
00497     }
00498 
00499     inline
00500     void
00501     dissector_default_hooks::data_cf_poll_hook(const void*, size_t, status)
00502     {
00503     }
00504 
00505     inline
00506     void
00507     dissector_default_hooks::
00508     data_cf_ack_cf_poll_hook(const void*, size_t, status)
00509     {
00510     }
00511 
00512     inline
00513     void
00514     dissector_default_hooks::null_hook(const void*, size_t, status)
00515     {
00516     }
00517 
00518     inline
00519     void
00520     dissector_default_hooks::cf_ack_hook(const void*, size_t, status)
00521     {
00522     }
00523 
00524     inline
00525     void
00526     dissector_default_hooks::cf_poll_hook(const void*, size_t, status)
00527     {
00528     }
00529 
00530     inline
00531     void
00532     dissector_default_hooks::cf_ack_cf_poll_hook(const void*, size_t, status)
00533     {
00534     }
00535 
00536     inline
00537     void
00538     dissector_default_hooks::
00539     within_ibss_hook(const data::within_ibss::header*, size_t)
00540     {
00541     }
00542 
00543     inline
00544     void
00545     dissector_default_hooks::
00546     from_ds_hook(const data::from_ds::header*, size_t)
00547     {
00548     }
00549 
00550     inline
00551     void
00552     dissector_default_hooks::
00553     to_ds_hook(const data::to_ds::header*, size_t)
00554     {
00555     }
00556 
00557     inline
00558     void
00559     dissector_default_hooks::
00560     ap_to_ap_hook(const data::ap_to_ap::header*, size_t)
00561     {
00562     }
00563 
00564   } // End of namespace wifi::frame.
00565 
00566 } // End of namespace wifi.
00567 
00568 #endif // ! WIFI_FRAME_DISSECTOR_DEFAULT_HOOKS_HXX_

Generated on Tue Jan 15 19:32:31 2008 for wipal by  doxygen 1.5.4