(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/wimax/packet-wmx.c) |
| |
| 806 | | | void proto_register_wimax(void) |
| 807 | | | { |
| 808 | | | module_t *wimax_module; |
| 809 | | | |
| 810 | | | if (proto_wimax == -1) |
| 811 | | | { |
| 812 | | | |
| 813 | | | proto_wimax = proto_register_protocol ( |
| 814 | | | "WiMax Protocol", |
| 815 | | | "WiMax (wmx)", |
| 816 | | | "wmx" |
| 817 | | | ); |
| 818 | | | |
| 819 | | | proto_register_subtree_array(ett, array_length(ett)); |
| 820 | | | |
| 821 | | | register_dissector("wmx", dissect_wimax, proto_wimax); |
| 822 | | | |
| 823 | | | |
| 824 | | | proto_register_wimax_cdma(); |
| 825 | | | proto_register_wimax_fch(); |
| 826 | | | proto_register_wimax_pdu(); |
| 827 | | | proto_register_wimax_ffb(); |
| 828 | | | proto_register_wimax_hack(); |
| 829 | | | proto_register_wimax_harq_map(); |
| 830 | | | proto_register_wimax_phy_attributes(); |
| 831 | | | proto_register_wimax_compact_dlmap_ie(); |
| 832 | | | proto_register_wimax_compact_ulmap_ie(); |
| 833 | | | |
| 834 | | | wimax_module = prefs_register_protocol(proto_wimax, proto_reg_handoff_wimax); |
| 835 | | | |
| 836 | | | prefs_register_uint_preference(wimax_module, "basic_cid_max", |
| 837 | | | "Maximum Basic CID", |
| 838 | | | "Set the maximum Basic CID" |
| 839 | | | " used in the Wimax decoder" |
| 840 | | | " (if other than the default of 320)." |
| 841 | | | " Note: The maximum Primary CID is" |
| 842 | | | " double the maximum Basic CID.", |
| 843 | | | 10, &global_cid_max_basic); |
| 844 | | | |
| 845 | | | prefs_register_bool_preference(wimax_module, "corrigendum_2_version", |
| 846 | | | "Corrigendum 2 Version", |
| 847 | | | "Set to TRUE to use the Corrigendum" |
| 848 | | | " 2 version of Wimax message decoding." |
| 849 | | | " Set to FALSE to use the 802.16e-2005" |
| 850 | | | " version.", |
| 851 | | | &include_cor2_changes); |
| 852 | | | prefs_register_obsolete_preference(wimax_module, "wimax.basic_cid_max"); |
| 853 | | | prefs_register_obsolete_preference(wimax_module, "wimax.corrigendum_2_version"); |
| 854 | | | |
| 855 | | | register_dissector_table("wimax.max_basic_cid", "Max Basic CID", FT_UINT16, BASE_DEC); |
Ignored Return Value
The return value of register_dissector_table() is never checked in the highlighted execution scenario. - If the return value can indicate an error, the error will be ignored if the highlighted code executes.
- The return value of register_dissector_table() is checked 99% of the time in this project. CodeSonar is configured to enforce Ignored Return Value checks for any function whose return value is checked at least 96% of the time, unless the function is used fewer than 20 times. (To modify these thresholds, use configuration file parameters RETURN_CHECKER_SAMPLE_SIZE and RETURN_CHECKER_RATIO. To exempt register_dissector_table() from the Ignored Return Value check, use configuration file parameter RETURN_CHECKER_IGNORED_FUNCS).
Show: All events | Only primary events |
|
| 856 | | | register_dissector_table("wimax.corrigendum_2_version", "Corrigendum 2 Version", FT_UINT16, BASE_DEC); |
| 857 | | | proto_register_subtree_array(ett_tlv, array_length(ett_tlv)); |
| 858 | | | } |
| 859 | | | } |
| |