tcpdump mailing list archives

Re: Initializing a device


From: Guy Harris <guy () alum mit edu>
Date: Thu, 12 Jan 2012 01:38:32 -0800


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() and g_sprintf(), 
because you don't have to free the result, but it's still extra work.

In this form, as we are going to have a single interface function to
set and read the parameter,

Which form is that?
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: