diff options
Diffstat (limited to 'epan/dissectors/packet-x29.c')
-rw-r--r-- | epan/dissectors/packet-x29.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/epan/dissectors/packet-x29.c b/epan/dissectors/packet-x29.c index db15d8d807..958abcd63a 100644 --- a/epan/dissectors/packet-x29.c +++ b/epan/dissectors/packet-x29.c @@ -16,23 +16,25 @@ void proto_register_x29(void); void proto_reg_handoff_x29(void); -static int proto_x29 = -1; -static int hf_msg_code = -1; -static int hf_error_type = -1; -static int hf_inv_msg_code = -1; +static dissector_handle_t x29_handle; + +static int proto_x29; +static int hf_msg_code; +static int hf_error_type; +static int hf_inv_msg_code; /* Generated from convert_proto_tree_add_text.pl */ -static int hf_x29_pad_message_data = -1; -static int hf_x29_type_reference_value = -1; -static int hf_x29_type_reference = -1; -static int hf_x29_data = -1; -static int hf_x29_type_of_aspect = -1; -static int hf_x29_reselection_message_data = -1; -static int hf_x29_break_value = -1; -static int hf_x29_parameter = -1; -static int hf_x29_value = -1; - -static gint ett_x29 = -1; +static int hf_x29_pad_message_data; +static int hf_x29_type_reference_value; +static int hf_x29_type_reference; +static int hf_x29_data; +static int hf_x29_type_of_aspect; +static int hf_x29_reselection_message_data; +static int hf_x29_break_value; +static int hf_x29_parameter; +static int hf_x29_value; + +static gint ett_x29; /* * PAD messages. @@ -257,6 +259,7 @@ proto_register_x29(void) }; proto_x29 = proto_register_protocol("X.29", "X.29", "x29"); + x29_handle = register_dissector("x29", dissect_x29, proto_x29); proto_register_field_array(proto_x29, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); } @@ -264,9 +267,6 @@ proto_register_x29(void) void proto_reg_handoff_x29(void) { - dissector_handle_t x29_handle; - - x29_handle = create_dissector_handle(dissect_x29, proto_x29); dissector_add_uint("x.25.spi", NLPID_SPI_X_29, x29_handle); } |