Ethereal-dev: [Ethereal-dev] H.450 dissector

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

From: "Anders Broman" <a.broman@xxxxxxxxx>
Date: Fri, 14 Jan 2005 00:15:45 +0100
Hi,
I have added an asn2eth generated H.450.x dissector without replacing the .h
and .c files,
I think it currently works as well as the previous one did as I copied most
of the old one :)

I know that I should have waited for the generic ROSE routines but it seemed
almost as easy
to do it this way than adapt the old dissector to the new h225 dissector.

The brave can try it out by adding the following lines to the h225.cnf file
and generate the two
dissectors. If it's deemed good enough I'd like to replace the old dissector
with this one before
the release.

Best regards
Anders




#.FN_BODY H323-UU-PDU/h4501SupplementaryService/_item

	tvbuff_t *h4501_tvb;
	guint32 h4501_offset=0;
	guint32 h4501_len=0;

	offset=dissect_per_octet_string(tvb, offset, pinfo, tree, -1, -1,
-1, &h4501_offset, &h4501_len);

	if(h4501_len){
		h4501_tvb = tvb_new_subset(tvb, h4501_offset, h4501_len,
h4501_len);
		call_dissector(h4501_handle, h4501_tvb, pinfo, tree);
	}
#.END

To generate the H450 dissector:
../../tools/asn2eth.py -X -e -p h450 -c h450.cnf -s packet-h450-template
h4501.asn