Ethereal-dev: [Ethereal-dev] Patch for STANAG 5066 dissector

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "M.P. Andriesse" <menno.andriesse@xxxxxxxxxxxxx>
Date: Tue, 15 Nov 2005 16:35:43 +0100
Hi,

testing with an older version of the STANAG 5066 stack turned up a small bug in the display of two packets types.

Patch is attached

Thanks,

--
Menno Andriesse

Nato C3 Agency
CIS Division,
Transmission & Network Services
Resource Centre

P.O. Box 174
2501 CD The Hague
The Netherlands
Tel: +31 (0)70 374 3449
Fax: +31 (0)70 374 3049

mailto:Menno.Andriesse@xxxxxxxxxxxxx

Index: epan/dissectors/packet-s5066.c
===================================================================
--- epan/dissectors/packet-s5066.c	(revision 16507)
+++ epan/dissectors/packet-s5066.c	(working copy)
@@ -641,7 +641,7 @@
 			{ "Number of errored blocks", "s5066.21.err_blocks", FT_UINT16, BASE_DEC, NULL, 0x0, "", HFILL }
 		},
 		{ &hf_s5066_21_nrx_blocks,
-			{ "Number of non-received blocks", "s5066.21.nrx_blocks", FT_UINT16, BASE_DEC, NULL, 0x0F, "", HFILL }
+			{ "Number of non-received blocks", "s5066.21.nrx_blocks", FT_UINT16, BASE_DEC, NULL, 0x0, "", HFILL }
 		},
 		/* Type 22: S_UNIDATA_REQUEST_CONFIRM */
 		{ &hf_s5066_22_unused,
@@ -702,7 +702,7 @@
 			{ "Number of errored blocks", "s5066.25.err_blocks", FT_UINT16, BASE_DEC, NULL, 0x0, "", HFILL }
 		},
 		{ &hf_s5066_25_nrx_blocks,
-			{ "Number of non-received blocks", "s5066.25.nrx_blocks", FT_UINT16, BASE_DEC, NULL, 0x0F, "", HFILL }
+			{ "Number of non-received blocks", "s5066.25.nrx_blocks", FT_UINT16, BASE_DEC, NULL, 0x0, "", HFILL }
 		},
 		/* Type 26: S_EXPEDITED_UNIDATA_REQUEST_CONFIRM */
 		{ &hf_s5066_26_unused,