aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/wimax/msg_dsc.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2009-06-22 04:58:08 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2009-06-22 04:58:08 +0000
commitf8c959dc8c4e46f733dbd4dcc954e6fa3304b248 (patch)
tree1ac2ca9d8478f5fd796c6bf17654b0899faa99f2 /plugins/wimax/msg_dsc.c
parent135ca5136ff5a9d79341228ca9e325ccba733214 (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/msg_dsc.c')
-rw-r--r--plugins/wimax/msg_dsc.c68
1 files changed, 34 insertions, 34 deletions
diff --git a/plugins/wimax/msg_dsc.c b/plugins/wimax/msg_dsc.c
index 2bd8255347..5e46f82b32 100644
--- a/plugins/wimax/msg_dsc.c
+++ b/plugins/wimax/msg_dsc.c
@@ -77,49 +77,49 @@ static gint hf_dsc_rsp_message_type = -1;
static gint hf_dsc_confirmation_code = -1;
static gint hf_dsc_ack_message_type = -1;
-/* DSx display */
-static hf_register_info hf[] =
+/* Register Wimax Mac Payload Protocol and Dissector */
+void proto_register_mac_mgmt_msg_dsc(void)
{
+ /* DSx display */
+ static hf_register_info hf[] =
{
- &hf_dsc_ack_message_type,
{
- "MAC Management Message Type", "wmx.macmgtmsgtype.dsc_ack",
- FT_UINT8, BASE_DEC, NULL, 0x0, "", HFILL
- }
- },
- {
- &hf_dsc_req_message_type,
+ &hf_dsc_ack_message_type,
+ {
+ "MAC Management Message Type", "wmx.macmgtmsgtype.dsc_ack",
+ FT_UINT8, BASE_DEC, NULL, 0x0, "", HFILL
+ }
+ },
{
- "MAC Management Message Type", "wmx.macmgtmsgtype.dsc_req",
- FT_UINT8, BASE_DEC, NULL, 0x0, "", HFILL
- }
- },
- {
- &hf_dsc_rsp_message_type,
+ &hf_dsc_req_message_type,
+ {
+ "MAC Management Message Type", "wmx.macmgtmsgtype.dsc_req",
+ FT_UINT8, BASE_DEC, NULL, 0x0, "", HFILL
+ }
+ },
{
- "MAC Management Message Type", "wmx.macmgtmsgtype.dsc_rsp",
- FT_UINT8, BASE_DEC, NULL, 0x0, "", HFILL
- }
- },
- {
- &hf_dsc_confirmation_code,
+ &hf_dsc_rsp_message_type,
+ {
+ "MAC Management Message Type", "wmx.macmgtmsgtype.dsc_rsp",
+ FT_UINT8, BASE_DEC, NULL, 0x0, "", HFILL
+ }
+ },
{
- "Confirmation code", "wmx.dsc.confirmation_code",
- FT_UINT8, BASE_DEC, NULL, 0x0, "", HFILL
- }
- },
- {
- &hf_dsc_transaction_id,
+ &hf_dsc_confirmation_code,
+ {
+ "Confirmation code", "wmx.dsc.confirmation_code",
+ FT_UINT8, BASE_DEC, NULL, 0x0, "", HFILL
+ }
+ },
{
- "Transaction ID", "wmx.dsc.transaction_id",
- FT_UINT16, BASE_DEC, NULL, 0x0, "", HFILL
+ &hf_dsc_transaction_id,
+ {
+ "Transaction ID", "wmx.dsc.transaction_id",
+ FT_UINT16, BASE_DEC, NULL, 0x0, "", HFILL
+ }
}
- }
-};
+ };
-/* Register Wimax Mac Payload Protocol and Dissector */
-void proto_register_mac_mgmt_msg_dsc(void)
-{
if (proto_mac_mgmt_msg_dsc_decoder == -1)
{
proto_mac_mgmt_msg_dsc_decoder = proto_mac_mgmt_msg_dsa_decoder;