On Thu, Aug 23, 2001 at 03:05:10PM +0200, Sebastian wrote:
> Wouldn't a malloc(snaplen) in pcap_open_live() suffice?

(Presumably you mean "malloc(handle->bufsize + handle->offset)".

Yes, a buffer "malloc()" in "pcap_open_live()" would suffice; that's why
my patch does that...

> Malloc-calls can be removed from new and old function then.

...and removes it from "live_open_new()" and "live_open_old()".

> Thats how I would do it :)

That's how I did it, too.

> Need to get a clean cvs-tree,

I just checked in my patch, so a clean CVS tree will have it.
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe

Reply via email to