tcpdump mailing list archives
Re: [PATCH]: pcap and zero copy with requested modification
From: Yoann Vandoorselaere <yoann () prelude-ids org>
Date: Tue, 06 Jan 2004 16:55:53 +0000
On Tue, 2004-01-06 at 15:30, Jesper Peterson wrote:
Yoann Vandoorselaere wrote:+ if ( ! alloc_buffer_cb ) { + static struct pcap_pkthdr hdr; + return &hdr; + }This isn't re-entrant. To allow multithreading and building libpcap as a DLL, the default header buffer should probably be in pcap_t.
Right, I know about this issue and plan to fix it. We also have to put alloc_buffer_cb/free_buffer_cb withing the pcap_t structure. -- Yoann Vandoorselaere <yoann () prelude-ids org>
Attachment:
signature.asc
Description: This is a digitally signed message part
Current thread:
- [PATCH]: pcap and zero copy with requested modification Yoann Vandoorselaere (Jan 05)
- Re: [PATCH]: pcap and zero copy with requested modification Jesper Peterson (Jan 05)
- Re: [PATCH]: pcap and zero copy with requested modification Guy Harris (Jan 05)
- Re: [PATCH]: pcap and zero copy with requested modification Yoann Vandoorselaere (Jan 06)
- Re: [PATCH]: pcap and zero copy with requested modification Yoann Vandoorselaere (Jan 06)
- Re: [PATCH]: pcap and zero copy with requested modification Guy Harris (Jan 05)
- Re: [PATCH]: pcap and zero copy with requested modification Jesper Peterson (Jan 05)