Ethereal-dev: [Ethereal-dev] [Patch] ANSI MAP

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Javier Acuña" <javier.acuna@xxxxxxxxxx>
Date: Fri, 20 May 2005 18:32:38 -0400


Hi, I'm attaching a small enhancement for packet-ansi-map that add billing_id as a field.

This has the advantage that now it is possible to filter packets by their Billing ID, which is very helpful (at least for me)

Best regards
Javier Acuña




________________________________________________________________

Mensaje enviado desde el Servicio Webmail del Dominio sixbell.cl



                  



_____________________________
La informacion contenida en esta transmision es confidencial, y no puede ser usada por otras personas que su(s) destinatario(s). El uso no autorizado de la informacion contenida en esta transmision puede ser sancionado. Si ha recibido esta transmision por error, por favor destruyala y notifique al remitente telefonicamente, con cobro revertido o via e-mail.

The information contained in this transmission is privileged, and may not be used by any person other than its addressee(s). Unauthorized use of the information contained in this transmission may be punished  by law.  If received in error, please destroy and notify the sender by calling collect or by e-mail.
_____________________________
--- ../source/epan/dissectors/packet-ansi_map.c	2005-04-28 12:50:55.000000000 -0400
+++ epan/dissectors/packet-ansi_map.c	2005-05-20 18:01:49.000000000 -0400
@@ -646,6 +646,7 @@
 static int hf_ansi_map_param_id = -1;
 static int hf_ansi_map_ios401_elem_id = -1;
 
+static int hf_ansi_map_billing_id = -1;
 
 /* Initialize the subtree pointers */
 static gint ett_ansi_map = -1;
@@ -2693,9 +2694,9 @@
     saved_offset = asn1->offset;
     asn1_int32_value_decode(asn1, 3, &id);
 
-    proto_tree_add_text(tree, asn1->tvb,
-	saved_offset, asn1->offset - saved_offset,
-	"ID Number %u",
+    proto_tree_add_int_format(tree, hf_ansi_map_billing_id, asn1->tvb,
+	saved_offset, asn1->offset - saved_offset,id,
+	"ID Number %d",
 	id);
 
     saved_offset = asn1->offset;
@@ -13146,6 +13147,11 @@
 	    FT_UINT32, BASE_HEX, NULL, 0,
 	    "", HFILL }
 	},
+	{ &hf_ansi_map_billing_id,
+	    { "Billing ID",	"ansi_map.billing_id",
+	    FT_INT32, BASE_DEC, NULL, 0,
+	    "", HFILL }
+	},
 	{ &hf_ansi_map_ios401_elem_id,
 	    { "IOS 4.0.1 Element ID",	"ansi_map.ios401_elem_id",
 	    FT_NONE, 0, NULL, 0,