include/trace-tools/wifi/frame/dissector/default_hooks.hxx

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

Generated on Wed Sep 12 16:02:47 2007 for trace-tools by  doxygen 1.5.3