aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-goose.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2009-06-18 21:30:42 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2009-06-18 21:30:42 +0000
commitb228488bc0b9d5e0c63b15814836f7332f35ce04 (patch)
tree62ba2a1b91519fc94d9c3213b328889b969e0c78 /epan/dissectors/packet-goose.c
parentdec6ea57aefdcebc4bacd3934606ad0d78da446e (diff)
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's (2) Duplicate 'blurb's are replaced with NULL (3) Empty ("") 'blurb's are replaced with NULL (4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME, FT_PROTOCOL, FT_STRING and FT_STRINGZ field types (5) Only allow non-zero value for 'display' if 'bitmask' is non-zero svn path=/trunk/; revision=28770
Diffstat (limited to 'epan/dissectors/packet-goose.c')
-rw-r--r--epan/dissectors/packet-goose.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/epan/dissectors/packet-goose.c b/epan/dissectors/packet-goose.c
index 4fec0387ce..c27733ba53 100644
--- a/epan/dissectors/packet-goose.c
+++ b/epan/dissectors/packet-goose.c
@@ -710,16 +710,16 @@ void proto_register_goose(void) {
static hf_register_info hf[] =
{
{ &hf_goose_appid,
- { "APPID", "goose.appid", FT_UINT16, BASE_HEX_DEC, NULL, 0x0, "", HFILL }},
+ { "APPID", "goose.appid", FT_UINT16, BASE_HEX_DEC, NULL, 0x0, NULL, HFILL }},
{ &hf_goose_length,
- { "Length", "goose.length", FT_UINT16, BASE_DEC, NULL, 0x0, "", HFILL }},
+ { "Length", "goose.length", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }},
{ &hf_goose_reserve1,
- { "Reserved 1", "goose.reserve1", FT_UINT16, BASE_HEX_DEC, NULL, 0x0, "", HFILL }},
+ { "Reserved 1", "goose.reserve1", FT_UINT16, BASE_HEX_DEC, NULL, 0x0, NULL, HFILL }},
{ &hf_goose_reserve2,
- { "Reserved 2", "goose.reserve2", FT_UINT16, BASE_HEX_DEC, NULL, 0x0, "", HFILL }},
+ { "Reserved 2", "goose.reserve2", FT_UINT16, BASE_HEX_DEC, NULL, 0x0, NULL, HFILL }},
/*--- Included file: packet-goose-hfarr.c ---*/
@@ -858,7 +858,7 @@ void proto_register_goose(void) {
"goose.VisibleString", HFILL }},
{ &hf_goose_t,
{ "t", "goose.t",
- FT_BYTES, BASE_HEX, NULL, 0,
+ FT_BYTES, BASE_NONE, NULL, 0,
"goose.UtcTime", HFILL }},
{ &hf_goose_stNum,
{ "stNum", "goose.stNum",
@@ -870,11 +870,11 @@ void proto_register_goose(void) {
"goose.INTEGER", HFILL }},
{ &hf_goose_test,
{ "test", "goose.test",
- FT_BOOLEAN, 8, NULL, 0,
+ FT_BOOLEAN, BASE_NONE, NULL, 0x0,
"goose.BOOLEAN", HFILL }},
{ &hf_goose_ndsCom,
{ "ndsCom", "goose.ndsCom",
- FT_BOOLEAN, 8, NULL, 0,
+ FT_BOOLEAN, BASE_NONE, NULL, 0x0,
"goose.BOOLEAN", HFILL }},
{ &hf_goose_numDatSetEntries,
{ "numDatSetEntries", "goose.numDatSetEntries",
@@ -906,11 +906,11 @@ void proto_register_goose(void) {
"goose.Data", HFILL }},
{ &hf_goose_boolean,
{ "boolean", "goose.boolean",
- FT_BOOLEAN, 8, NULL, 0,
+ FT_BOOLEAN, BASE_NONE, NULL, 0x0,
"goose.BOOLEAN", HFILL }},
{ &hf_goose_bit_string,
{ "bit-string", "goose.bit_string",
- FT_BYTES, BASE_HEX, NULL, 0,
+ FT_BYTES, BASE_NONE, NULL, 0,
"goose.BIT_STRING", HFILL }},
{ &hf_goose_integer,
{ "integer", "goose.integer",
@@ -922,7 +922,7 @@ void proto_register_goose(void) {
"goose.INTEGER", HFILL }},
{ &hf_goose_floating_point,
{ "floating-point", "goose.floating_point",
- FT_BYTES, BASE_HEX, NULL, 0,
+ FT_BYTES, BASE_NONE, NULL, 0,
"goose.FloatingPoint", HFILL }},
{ &hf_goose_real,
{ "real", "goose.real",
@@ -930,7 +930,7 @@ void proto_register_goose(void) {
"goose.REAL", HFILL }},
{ &hf_goose_octet_string,
{ "octet-string", "goose.octet_string",
- FT_BYTES, BASE_HEX, NULL, 0,
+ FT_BYTES, BASE_NONE, NULL, 0,
"goose.OCTET_STRING", HFILL }},
{ &hf_goose_visible_string,
{ "visible-string", "goose.visible_string",
@@ -938,7 +938,7 @@ void proto_register_goose(void) {
"goose.VisibleString", HFILL }},
{ &hf_goose_binary_time,
{ "binary-time", "goose.binary_time",
- FT_BYTES, BASE_HEX, NULL, 0,
+ FT_BYTES, BASE_NONE, NULL, 0,
"goose.TimeOfDay", HFILL }},
{ &hf_goose_bcd,
{ "bcd", "goose.bcd",
@@ -946,7 +946,7 @@ void proto_register_goose(void) {
"goose.INTEGER", HFILL }},
{ &hf_goose_booleanArray,
{ "booleanArray", "goose.booleanArray",
- FT_BYTES, BASE_HEX, NULL, 0,
+ FT_BYTES, BASE_NONE, NULL, 0,
"goose.BIT_STRING", HFILL }},
/*--- End of included file: packet-goose-hfarr.c ---*/