Ethereal-dev: Re: [Ethereal-dev] Dynamic arrays in proto_register_field_array and proto_regist

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

From: Stefano Pettini <spettini@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 06 Jan 2005 23:56:43 +0100
Guy Harris wrote:

Why does it have to be *before* proto_register_xxx? Why can't it be *in* proto_register_xxx, just before those arrays are registered?

I've solve the problem using few macros, since header fields and etts arrays can be constructed at compile time.

Thanks.

Stefano