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-lwres.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-lwres.c')
-rw-r--r-- | epan/dissectors/packet-lwres.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-lwres.c b/epan/dissectors/packet-lwres.c index c3be742236..bbea636a37 100644 --- a/epan/dissectors/packet-lwres.c +++ b/epan/dissectors/packet-lwres.c @@ -1358,7 +1358,7 @@ proto_register_lwres(void) "lwres namelen", HFILL }}, { &hf_req_name, - { "Domain name" , "lwres.reqdname" , FT_STRING, BASE_DEC, NULL, 0x0, + { "Domain name" , "lwres.reqdname" , FT_STRING, BASE_NONE, NULL, 0x0, "lwres reqdname", HFILL }}, { &hf_ttl, @@ -1378,7 +1378,7 @@ proto_register_lwres(void) "lwres realnamelen", HFILL }}, { &hf_realname, - { "Real doname name", "lwres.realname", FT_STRING, BASE_DEC, NULL, 0x0, + { "Real doname name", "lwres.realname", FT_STRING, BASE_NONE, NULL, 0x0, "lwres realname", HFILL }}, { &hf_a_record, @@ -1414,7 +1414,7 @@ proto_register_lwres(void) "lwres adn namelen", HFILL }}, { &hf_adn_name, - { "Name", "lwres.adn.name", FT_STRING, BASE_DEC, NULL, 0x0, + { "Name", "lwres.adn.name", FT_STRING, BASE_NONE, NULL, 0x0, "lwres adn name", HFILL }}, { &hf_adn_naliases, @@ -1426,11 +1426,11 @@ proto_register_lwres(void) "lwres adn naddrs", HFILL }}, { &hf_adn_realname, - { "Real name", "lwres.adn.realname", FT_STRING, BASE_DEC, NULL, 0x0, + { "Real name", "lwres.adn.realname", FT_STRING, BASE_NONE, NULL, 0x0, "lwres adn realname", HFILL }}, { &hf_adn_aliasname, - { "Alias name", "lwres.adn.aliasname", FT_STRING, BASE_DEC, NULL, 0x0, + { "Alias name", "lwres.adn.aliasname", FT_STRING, BASE_NONE, NULL, 0x0, "lwres adn aliasname", HFILL }}, { &hf_adn_family, @@ -1442,7 +1442,7 @@ proto_register_lwres(void) "lwres adn addr length", HFILL }}, { &hf_adn_addr_addr, - { "IP Address", "lwres.adn.addr.addr", FT_STRING, BASE_DEC, NULL, 0x0, + { "IP Address", "lwres.adn.addr.addr", FT_STRING, BASE_NONE, NULL, 0x0, "lwres adn addr addr", HFILL }}, /* Add more fields here */ |