Ethereal-dev: Re: [Ethereal-dev] Patch to packet-isup to display cause value string.

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Fri, 28 Feb 2003 15:17:59 -0800
On Thu, Feb 20, 2003 at 02:18:48AM -0800, Guy Harris wrote:
> That "dissect_q931_cause_ie()" appears to be almost identical to the one
> in "packet-q931.c", except for the value_string table passed to
> "val_to_str()"; if that's the case, you should probably, instead, add an
> argument to "dissect_q931_cause_ie()" in "packet-q931.c", which supplies
> a poitner to a value_string table, and pass different pointers in
> "packet-q931.c" and "packet-isup.c".

I've checked in code to do that with your "q850_cause_code_vals" table,
although "dissect_q931_cause_ie()" now takes a hfindex value for the
registered field to use for the cause value, so the ISUP dissector now
has an "isup.cause_indicator" filterable field that contains the cause
value.