Re: [tcpdump-workers] Initializing a device

2012-01-12 Thread Akos Vandra
On 12 January 2012 10:38, Guy Harris wrote: > > On Jan 12, 2012, at 1:06 AM, Akos Vandra wrote: > >> We could put a limit - say 32 or 64 chars - to the max length of the >> param, and then allocate in on the stack, but it would still require >> printf. > > Where would that be done?  It's a little

Re: [tcpdump-workers] Initializing a device

2012-01-12 Thread Guy Harris
On Jan 12, 2012, at 1:06 AM, Akos Vandra wrote: > We could put a limit - say 32 or 64 chars - to the max length of the > param, and then allocate in on the stack, but it would still require > printf. Where would that be done? It's a little more convenient than using routines such as asprintf()

Re: [tcpdump-workers] Initializing a device

2012-01-12 Thread Akos Vandra
We could put a limit - say 32 or 64 chars - to the max length of the param, and then allocate in on the stack, but it would still require printf. In this form, as we are going to have a single interface function to set and read the parameter, some serialization and deserialization of the data is ne