diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2009-06-18 21:30:42 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2009-06-18 21:30:42 +0000 |
commit | b228488bc0b9d5e0c63b15814836f7332f35ce04 (patch) | |
tree | 62ba2a1b91519fc94d9c3213b328889b969e0c78 /epan/dissectors/packet-agentx.c | |
parent | dec6ea57aefdcebc4bacd3934606ad0d78da446e (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-agentx.c')
-rw-r--r-- | epan/dissectors/packet-agentx.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/epan/dissectors/packet-agentx.c b/epan/dissectors/packet-agentx.c index 6c784423c8..e4c7e24671 100644 --- a/epan/dissectors/packet-agentx.c +++ b/epan/dissectors/packet-agentx.c @@ -918,60 +918,60 @@ proto_register_agentx(void) static hf_register_info hf[] = { { &hf_version, - { "Version ", "agentx.version", FT_UINT8, BASE_DEC, NULL, 0x0, + { "Version", "agentx.version", FT_UINT8, BASE_DEC, NULL, 0x0, "header version", HFILL }}, { &hf_type, - { "Type ", "agentx.type", FT_UINT8, BASE_DEC, VALS(type_values), 0x0, + { "Type", "agentx.type", FT_UINT8, BASE_DEC, VALS(type_values), 0x0, "header type", HFILL }}, { &hf_flags, - { "Flags ", "agentx.flags", FT_UINT8, BASE_DEC, NULL, 0x0, + { "Flags", "agentx.flags", FT_UINT8, BASE_DEC, NULL, 0x0, "header type", HFILL }}, { &hf_session_id, - { "sessionID ", "agentx.session_id", FT_UINT32, BASE_DEC, NULL, 0x0, + { "sessionID", "agentx.session_id", FT_UINT32, BASE_DEC, NULL, 0x0, "Session ID", HFILL }}, { &hf_trans_id, - { "TransactionID ", "agentx.transaction_id", FT_UINT32, BASE_DEC, NULL, 0x0, + { "TransactionID", "agentx.transaction_id", FT_UINT32, BASE_DEC, NULL, 0x0, "Transaction ID", HFILL }}, { &hf_packet_id, - { "PacketID ", "agentx.packet_id", FT_UINT32, BASE_DEC, NULL, 0x0, + { "PacketID", "agentx.packet_id", FT_UINT32, BASE_DEC, NULL, 0x0, "Packet ID", HFILL }}, { &hf_payload_len, - { "Payload length ", "agentx.payload_len", FT_UINT32, BASE_DEC, NULL, 0x0, - "Payload length", HFILL }}, + { "Payload length", "agentx.payload_len", FT_UINT32, BASE_DEC, NULL, 0x0, + NULL, HFILL }}, { &hf_ostring, { "Octet String", "agentx.ostring", FT_STRING, BASE_NONE, NULL, 0x0, - "Octet String", HFILL }}, + NULL, HFILL }}, { &hf_ostring_len, { "OString len", "agentx.ostring_len", FT_UINT32, BASE_DEC, NULL, 0x0, "Octet String Length", HFILL }}, { &hf_oid_sub, - { "Number subids ", "agentx.n_subid", FT_UINT8, BASE_DEC, NULL, 0x0, - "Number subids", HFILL }}, + { "Number subids", "agentx.n_subid", FT_UINT8, BASE_DEC, NULL, 0x0, + NULL, HFILL }}, { &hf_oid_prefix, - { "OID prefix ", "agentx.oid_prefix", FT_UINT8, BASE_DEC, NULL, 0x0, - "OID prefix", HFILL }}, + { "OID prefix", "agentx.oid_prefix", FT_UINT8, BASE_DEC, NULL, 0x0, + NULL, HFILL }}, { &hf_oid_include, - { "OID include ", "agentx.oid_include", FT_UINT8, BASE_DEC, NULL, 0x0, - "OID include", HFILL }}, + { "OID include", "agentx.oid_include", FT_UINT8, BASE_DEC, NULL, 0x0, + NULL, HFILL }}, { &hf_oid_str, - { "OID", "agentx.oid", FT_STRING, BASE_DEC, NULL, 0x0, - "OID", HFILL }}, + { "OID", "agentx.oid", FT_STRING, BASE_NONE, NULL, 0x0, + NULL, HFILL }}, { &hf_resp_uptime, { "sysUpTime", "agentx.r.uptime", FT_UINT32, BASE_DEC, NULL, 0x0, - "sysUpTime", HFILL }}, + NULL, HFILL }}, { &hf_resp_error, { "Resp. error", "agentx.r.error", FT_UINT16, BASE_DEC, VALS(resp_errors), 0x0, |