aboutsummaryrefslogtreecommitdiffstats
path: root/asn1
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2007-02-14 01:16:19 +0000
committerStephen Fisher <steve@stephen-fisher.com>2007-02-14 01:16:19 +0000
commit3f3d725506a331c48f7f9ec35259146a510fbdee (patch)
tree730ada4b4e9d687921619f2f19448b75f84b4449 /asn1
parentaa897723ff0f66f26c9d97b404c1a1b85088757c (diff)
Changes to the ansi_map and ospf dissectors to use new RVAL() (range string)
feature. svn path=/trunk/; revision=20806
Diffstat (limited to 'asn1')
-rw-r--r--asn1/ansi_map/packet-ansi_map-template.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/asn1/ansi_map/packet-ansi_map-template.c b/asn1/ansi_map/packet-ansi_map-template.c
index c641c9e2bd..7f8f972bea 100644
--- a/asn1/ansi_map/packet-ansi_map-template.c
+++ b/asn1/ansi_map/packet-ansi_map-template.c
@@ -2852,20 +2852,14 @@ static const range_string cdmaserviceoption_vals[] = {
static void
dissect_ansi_map_cdmaserviceoption(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree){
-
int offset = 0;
proto_item *item;
proto_tree *subtree;
- guint16 so;
item = get_ber_last_created_item();
subtree = proto_item_add_subtree(item, ett_cdmaserviceoption);
- so = tvb_get_ntohs(tvb,offset);
- proto_tree_add_uint_format(subtree, hf_ansi_map_cdmaserviceoption,
- tvb, offset, 2, so,
- "CDMAServiceOption: %u %s", so,
- rval_to_str(so,cdmaserviceoption_vals ,"Unknown"));
+ proto_tree_add_item(subtree, hf_ansi_map_cdmaserviceoption, tvb, offset, 2, FALSE);
}
@@ -4352,7 +4346,7 @@ void proto_register_ansi_map(void) {
"TerminationList (TL)", HFILL }},
{ &hf_ansi_map_cdmaserviceoption,
{ "CDMAServiceOption", "ansi_map.cdmaserviceoption",
- FT_UINT16, BASE_DEC, NULL, 0x0,
+ FT_UINT16, BASE_RANGE_STRING | BASE_DEC, RVALS(&cdmaserviceoption_vals), 0x0,
"CDMAServiceOption", HFILL }},
{ &hf_ansi_trans_cap_waddr,
{ "WIN Addressing (WADDR)", "ansi_map.trans_cap_waddr",