Ethereal-dev: RE: [Ethereal-dev] asn2eth and H225 dissector

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

From: "Anders Broman (AL/EAB)" <anders.broman@xxxxxxxxxxxx>
Date: Thu, 27 Jan 2005 09:46:33 +0100
Hi,
Add the following to the h225.cnf file:
#----------------------------------------------------------------------------------------
#.FN_BODY H323-UU-PDU/h245Tunneling
	offset=dissect_per_boolean(tvb, offset, pinfo, tree, hf_h225_h245Tunneling, &(h225_pi->is_h245Tunneling), NULL);
	return offset;

#.END
#----------------------------------------------------------------------------------------
Best regards
Anders

-----Original Message-----
From: ethereal-dev-bounces@xxxxxxxxxxxx
[mailto:ethereal-dev-bounces@xxxxxxxxxxxx]On Behalf Of Alejandro Vaquero
Sent: den 27 januari 2005 01:35
To: ethereal-dev@xxxxxxxxxxxx
Subject: [Ethereal-dev] asn2eth and H225 dissector


Hi All,
    I've added more information to the H225 dissector for tap to be used 
in the "Voip Call analysis". One of the parameters that I need is if 
H245 tunneling is on or off in a H225 packet. The code that I need in 
packet-h225.c is:

static int
dissect_h245Tunneling(tvbuff_t *tvb, int offset, packet_info *pinfo, 
proto_tree *tree)
{
        offset=dissect_per_boolean(tvb, offset, pinfo, tree, 
hf_h225_h245Tunneling, &(h225_pi->is_h245Tunneling), NULL);
        return offset;
}

    I added this code directly in packet-h225-template.c but the problem 
is that the script also generate the same function 
dissect_h245Tunneling. I don't want to remove it from the h225.asn 
because it is necessary. The function generated by the script is:

static int dissect_h245Tunneling(tvbuff_t *tvb, int offset, packet_info 
*pinfo,
proto_tree *tree) {
  return dissect_h225_BOOLEAN(tvb, offset, pinfo, tree, 
hf_h225_h245Tunneling);
}

    How can I solve this?

Thanks
Alejandro

_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev