diff options
Diffstat (limited to '')
-rw-r--r-- | doc/wsdg_src/wsdg_asn2wrs.adoc (renamed from docbook/wsdg_src/wsdg_asn2wrs.adoc) | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docbook/wsdg_src/wsdg_asn2wrs.adoc b/doc/wsdg_src/wsdg_asn2wrs.adoc index e7e021ee..a5add171 100644 --- a/docbook/wsdg_src/wsdg_asn2wrs.adoc +++ b/doc/wsdg_src/wsdg_asn2wrs.adoc @@ -64,7 +64,7 @@ Reasons one might _not_ want to build as a plugin: * The CMakeFile is quite a bit more complex. * Building under the asn1 subtree keeps all such dissectors together. -If you still think you'd like to build your module as a plugin, see https://gitlab.com/wireshark/wireshark/-/wikis/ASN1_plugin[Building ASN1 Plugins]. +If you still think you'd like to build your module as a plugin, see {wireshark-wiki-url}ASN1_plugin[Building ASN1 Plugins]. [#UnderstandingErrorMessages] === Understanding Error Messages @@ -432,7 +432,7 @@ Time TYPE = FT_STRING DISPLAY = BASE_NONE STRING = NULL BITMASK = 0 [#SimpleASN1BasedDissector] === Simple ASN.1-Based Dissector -// https://gitlab.com/wireshark/wireshark/-/wikis/uploads/__moin_import__/attachments/ASN1_sample/foo.tar.gz +// {wireshark-wiki-moin-import-url}ASN1_sample/foo.tar.gz // all seven files as gzipped foo directory (suitable for unzipping in // wireshark/asn1 directory) @@ -566,19 +566,19 @@ FOO-MESSAGE #define PSNAME "FOO" #define PFNAME "foo" #define FOO_PORT 5001 /* UDP port */ -static dissector_handle_t foo_handle=NULL; +static dissector_handle_t foo_handle; void proto_reg_handoff_foo(void); void proto_register_foo(void); /* Initialize the protocol and registered fields */ -static int proto_foo = -1; +static int proto_foo; static int global_foo_port = FOO_PORT; #include "packet-foo-hf.c" /* Initialize the subtree pointers */ -static int ett_foo = -1; +static int ett_foo; #include "packet-foo-ett.c" @@ -893,7 +893,7 @@ Replace all PROTOCOL/protocol references with the name of your protocol. #define PFNAME "protocol" /* Initialize the protocol and registered fields */ -int proto_protocol = -1; +int proto_protocol; #include "packet-protocol-hf.c" /* Initialize the subtree pointers */ |