Ethereal-dev: [Ethereal-dev] Dynamic arrays in proto_register_field_array and proto_register_s

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 21:21:11 +0100
Hello!

I have to construct header fields and etts arrays at runtime. Unfortunately this can't be avoided.

As far as I know, the content of these arrays isn't copied, so I have to provide to proto_register_field_array and proto_register_subtree_array static or heap-allocated objects.

Is there a way to execute a function after ethereal startup, before proto_register_xxx, to allocate these objects, and another function just before ethereal shutdown, to free them?

Thanks.

Stefano