From b228488bc0b9d5e0c63b15814836f7332f35ce04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Thu, 18 Jun 2009 21:30:42 +0000 Subject: 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 --- epan/dissectors/packet-nas_eps.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'epan/dissectors/packet-nas_eps.c') diff --git a/epan/dissectors/packet-nas_eps.c b/epan/dissectors/packet-nas_eps.c index b0cca22b78..41edb25de0 100644 --- a/epan/dissectors/packet-nas_eps.c +++ b/epan/dissectors/packet-nas_eps.c @@ -4087,7 +4087,7 @@ void proto_register_nas_eps(void) { NULL, HFILL } }, { &hf_nas_eps_tsc, - { "Type of security context flag (TSC) ","nas_eps.emm.tsc", + { "Type of security context flag (TSC)","nas_eps.emm.tsc", FT_UINT8,BASE_DEC, VALS(nas_eps_tsc_vals), 0x0, NULL, HFILL } }, @@ -4129,7 +4129,7 @@ void proto_register_nas_eps(void) { { &hf_nas_eps_esm_msg_cont, { "ESM message container contents","nas_eps.emm.esm_msg_cont", FT_BYTES, BASE_NONE, NULL, 0x0, - "ESM message container contents", HFILL } + NULL, HFILL } }, { &hf_nas_eps_esm_imeisv_req, { "IMEISV request","nas_eps.emm.imeisv_req", @@ -4158,8 +4158,8 @@ void proto_register_nas_eps(void) { }, { &hf_nas_eps_emm_res, { "RES","nas_eps.emm.res", - FT_BYTES, BASE_HEX, NULL, 0x0, - "RES", HFILL } + FT_BYTES, BASE_NONE, NULL, 0x0, + NULL, HFILL } }, { &hf_nas_eps_emm_csfb_resp, { "CSFB response","nas_eps.emm.csfb_resp", @@ -4178,7 +4178,7 @@ void proto_register_nas_eps(void) { }, { &hf_nas_eps_emm_short_mac, { "Short MAC value","nas_eps.emm.short_mac", - FT_BYTES, BASE_HEX, NULL, 0x0, + FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_nas_eps_emm_tai_tol, @@ -4395,12 +4395,12 @@ void proto_register_nas_eps(void) { }, { &hf_nas_eps_emm_1xsrvcc_cap, - { "1xSRVCC capability ","nas_eps.emm.1xsrvcc_cap", + { "1xSRVCC capability","nas_eps.emm.1xsrvcc_cap", FT_BOOLEAN, 8, TFS(&nas_eps_emm_1xsrvcc_cap_flg), 0x02, NULL, HFILL } }, { &hf_nas_eps_emm_ue_ra_cap_inf_upd_need_flg, - { "1xSRVCC capability ","nas_eps.emm.ue_ra_cap_inf_upd_need_flg", + { "1xSRVCC capability","nas_eps.emm.ue_ra_cap_inf_upd_need_flg", FT_BOOLEAN, 8, TFS(&nas_eps_emm_ue_ra_cap_inf_upd_need_flg), 0x01, NULL, HFILL } }, @@ -4521,27 +4521,27 @@ void proto_register_nas_eps(void) { }, { &hf_nas_eps_esm_pdn_ipv4, {"PDN IPv4", "nas_eps.esm.pdn_ipv4", - FT_IPv4, BASE_DEC, NULL, 0x0, - "PDN IPv4", HFILL} + FT_IPv4, BASE_NONE, NULL, 0x0, + NULL, HFILL} }, { &hf_nas_eps_esm_pdn_ipv6_len, {"IPv6 Prefix Length", "nas_eps.esm.pdn_ipv6_len", FT_UINT8, BASE_DEC, NULL, 0x0, - "IPv6 Prefix Length", HFILL} + NULL, HFILL} }, { &hf_nas_eps_esm_pdn_ipv6, {"PDN IPv6", "nas_eps.esm.pdn_ipv6", - FT_IPv6, BASE_HEX, NULL, 0x0, - "PDN IPv6", HFILL} + FT_IPv6, BASE_NONE, NULL, 0x0, + NULL, HFILL} }, { &hf_nas_eps_esm_linked_bearer_id, - { "Linked EPS bearer identity ","nas_eps.esm.linked_bearer_id", + { "Linked EPS bearer identity","nas_eps.esm.linked_bearer_id", FT_UINT8,BASE_DEC, VALS(nas_eps_esm_linked_bearer_id_vals), 0x0, NULL, HFILL } }, { &hf_nas_eps_active_flg, { "Active flag", "nas_eps.emm.active_flg", - FT_BOOLEAN, 8, TFS(&nas_eps_emm_active_flg_value), 0x0, + FT_BOOLEAN, BASE_NONE, TFS(&nas_eps_emm_active_flg_value), 0x0, NULL, HFILL } }, { &hf_nas_eps_eps_update_result_value, -- cgit v1.2.3