aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-x29.c
diff options
context:
space:
mode:
authorDavid Perry <boolean263@protonmail.com>2022-08-09 18:50:08 +0000
committerGerald Combs <gerald@wireshark.org>2022-08-09 18:50:08 +0000
commit43d499ca45b6a32d64ec201fb6e9eefa6efd9c08 (patch)
treebb9300433466470da19c718222d91014381f951d /epan/dissectors/packet-x29.c
parent33a34aeec181446ffdcc5e15727c0585450a133e (diff)
Use `register_dissector()` for more protocols
Diffstat (limited to 'epan/dissectors/packet-x29.c')
-rw-r--r--epan/dissectors/packet-x29.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-x29.c b/epan/dissectors/packet-x29.c
index db15d8d807..819c9ecf4b 100644
--- a/epan/dissectors/packet-x29.c
+++ b/epan/dissectors/packet-x29.c
@@ -16,6 +16,8 @@
void proto_register_x29(void);
void proto_reg_handoff_x29(void);
+static dissector_handle_t x29_handle;
+
static int proto_x29 = -1;
static int hf_msg_code = -1;
static int hf_error_type = -1;
@@ -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);
}