Ethereal-dev: Re: [Ethereal-dev] Protocol definition table loaded (problems)

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

From: Gilbert Ramirez <gilramir@xxxxxxxxx>
Date: Wed, 07 Mar 2001 16:11:18 -0600
"Nicholas, John S" wrote:

> The following is my registration statement:
>   proto_register_field_array(proto_pep, hf, array_length(hf));
> (which should be same as the following)
>   proto_register_field_array(proto_pep, hf, MAX_NUM_FIELDS);
> 
> I also tried:
>  proto_register_field_array(proto_pep, hf, hf_field_cnt);
>      where hf_field_cnt= # of elements in array actually used
> 
> I get a segmentation fault
> Program received signal SIGSEGV, Segmentation fault.
> proto_register_field_array (parent=1498, hf=0x1, num_records=1210329218) at proto.c:1534
> 1534    proto.c: No such file or directory.
> (xxgdb)
> 
> Granted the num_records argument looks screwed up...  not sure why yet.

So does 'hf'.

--gilbert