diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2009-06-22 04:58:08 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2009-06-22 04:58:08 +0000 |
commit | f8c959dc8c4e46f733dbd4dcc954e6fa3304b248 (patch) | |
tree | 1ac2ca9d8478f5fd796c6bf17654b0899faa99f2 /plugins/wimax/wimax_fch_decoder.c | |
parent | 135ca5136ff5a9d79341228ca9e325ccba733214 (diff) |
From Kovarththanan Rajaratnam:
Move header field info declarations into function scope.
This is the first step. Another patch will be submitted which actually scrubs
the header field info declarations (remove empty blurbs, etc.)
svn path=/trunk/; revision=28797
Diffstat (limited to 'plugins/wimax/wimax_fch_decoder.c')
-rw-r--r-- | plugins/wimax/wimax_fch_decoder.c | 174 |
1 files changed, 87 insertions, 87 deletions
diff --git a/plugins/wimax/wimax_fch_decoder.c b/plugins/wimax/wimax_fch_decoder.c index bf6168cc2f..875b41b343 100644 --- a/plugins/wimax/wimax_fch_decoder.c +++ b/plugins/wimax/wimax_fch_decoder.c @@ -104,108 +104,108 @@ static const value_string coding_indications[] = { 0, NULL } }; -/* TLV display */ -static hf_register_info hf[] = +/* Setup protocol subtree array */ +static gint *ett[] = +{ + &ett_wimax_fch_decoder, +}; + +/* Register Wimax FCH Protocol */ +void proto_register_wimax_fch(void) { + /* TLV display */ + static hf_register_info hf[] = { - &hf_fch_used_subchannel_group0, { - "Sub-Channel Group 0", "wmx.fch.subchannel_group0", - FT_UINT24, BASE_DEC, VALS(used_or_not_used), USED_SUB_CHANNEL_GROUP_0, - "", HFILL - } - }, - { - &hf_fch_used_subchannel_group1, + &hf_fch_used_subchannel_group0, + { + "Sub-Channel Group 0", "wmx.fch.subchannel_group0", + FT_UINT24, BASE_DEC, VALS(used_or_not_used), USED_SUB_CHANNEL_GROUP_0, + "", HFILL + } + }, { - "Sub-Channel Group 1", "wmx.fch.subchannel_group1", - FT_UINT24, BASE_DEC, VALS(used_or_not_used), USED_SUB_CHANNEL_GROUP_1, - "", HFILL - } - }, - { - &hf_fch_used_subchannel_group2, + &hf_fch_used_subchannel_group1, + { + "Sub-Channel Group 1", "wmx.fch.subchannel_group1", + FT_UINT24, BASE_DEC, VALS(used_or_not_used), USED_SUB_CHANNEL_GROUP_1, + "", HFILL + } + }, { - "Sub-Channel Group 2", "wmx.fch.subchannel_group2", - FT_UINT24, BASE_DEC, VALS(used_or_not_used), USED_SUB_CHANNEL_GROUP_2, - "", HFILL - } - }, - { - &hf_fch_used_subchannel_group3, + &hf_fch_used_subchannel_group2, + { + "Sub-Channel Group 2", "wmx.fch.subchannel_group2", + FT_UINT24, BASE_DEC, VALS(used_or_not_used), USED_SUB_CHANNEL_GROUP_2, + "", HFILL + } + }, { - "Sub-Channel Group 3", "wmx.fch.subchannel_group3", - FT_UINT24, BASE_DEC, VALS(used_or_not_used), USED_SUB_CHANNEL_GROUP_3, - "", HFILL - } - }, - { - &hf_fch_used_subchannel_group4, + &hf_fch_used_subchannel_group3, + { + "Sub-Channel Group 3", "wmx.fch.subchannel_group3", + FT_UINT24, BASE_DEC, VALS(used_or_not_used), USED_SUB_CHANNEL_GROUP_3, + "", HFILL + } + }, { - "Sub-Channel Group 4", "wmx.fch.subchannel_group4", - FT_UINT24, BASE_DEC, VALS(used_or_not_used), USED_SUB_CHANNEL_GROUP_4, - "", HFILL - } - }, - { - &hf_fch_used_subchannel_group5, + &hf_fch_used_subchannel_group4, + { + "Sub-Channel Group 4", "wmx.fch.subchannel_group4", + FT_UINT24, BASE_DEC, VALS(used_or_not_used), USED_SUB_CHANNEL_GROUP_4, + "", HFILL + } + }, { - "Sub-Channel Group 5", "wmx.fch.subchannel_group5", - FT_UINT24, BASE_DEC, VALS(used_or_not_used), USED_SUB_CHANNEL_GROUP_5, - "", HFILL - } - }, - { - &hf_fch_reserved_1, + &hf_fch_used_subchannel_group5, + { + "Sub-Channel Group 5", "wmx.fch.subchannel_group5", + FT_UINT24, BASE_DEC, VALS(used_or_not_used), USED_SUB_CHANNEL_GROUP_5, + "", HFILL + } + }, { - "Reserved", "wmx.fch.reserved1", - FT_UINT24, BASE_DEC, NULL, FCH_RESERVED_1, - "", HFILL - } - }, - { - &hf_fch_repetition_coding_indication, + &hf_fch_reserved_1, + { + "Reserved", "wmx.fch.reserved1", + FT_UINT24, BASE_DEC, NULL, FCH_RESERVED_1, + "", HFILL + } + }, { - "Repetition Coding Indication", "wmx.fch.repetition_coding_indication", - FT_UINT24, BASE_DEC, VALS(repetition_coding_indications), REPETITION_CODING_INDICATION, - "", HFILL - } - }, - { - &hf_fch_coding_indication, + &hf_fch_repetition_coding_indication, + { + "Repetition Coding Indication", "wmx.fch.repetition_coding_indication", + FT_UINT24, BASE_DEC, VALS(repetition_coding_indications), REPETITION_CODING_INDICATION, + "", HFILL + } + }, { - "Coding Indication", "wmx.fch.coding_indication", - FT_UINT24, BASE_DEC, VALS(coding_indications), CODING_INDICATION, - "", HFILL - } - }, - { - &hf_fch_dlmap_length, + &hf_fch_coding_indication, + { + "Coding Indication", "wmx.fch.coding_indication", + FT_UINT24, BASE_DEC, VALS(coding_indications), CODING_INDICATION, + "", HFILL + } + }, { - "DL Map Length", "wmx.fch.dl_map_length", - FT_UINT24, BASE_DEC, NULL, DL_MAP_LENGTH, - "", HFILL - } - }, - { - &hf_fch_reserved_2, + &hf_fch_dlmap_length, + { + "DL Map Length", "wmx.fch.dl_map_length", + FT_UINT24, BASE_DEC, NULL, DL_MAP_LENGTH, + "", HFILL + } + }, { - "Reserved", "wmx.fch.reserved2", - FT_UINT24, BASE_DEC, NULL, FCH_RESERVED_2, - "", HFILL + &hf_fch_reserved_2, + { + "Reserved", "wmx.fch.reserved2", + FT_UINT24, BASE_DEC, NULL, FCH_RESERVED_2, + "", HFILL + } } - } -}; + }; -/* Setup protocol subtree array */ -static gint *ett[] = -{ - &ett_wimax_fch_decoder, -}; - -/* Register Wimax FCH Protocol */ -void proto_register_wimax_fch(void) -{ if (proto_wimax_fch_decoder == -1) { proto_wimax_fch_decoder = proto_wimax; |