tcpdump mailing list archives
Re: [PATCH]: pcap and zero copy with requested modification
From: Jesper Peterson <jesper () endace com>
Date: Tue, 06 Jan 2004 15:30:30 +1300
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.
-- Jesper Peterson, Senior Software Developer http://www.endace.com, +64 7 839 0540 - This is the TCPDUMP workers list. It is archived at http://www.tcpdump.org/lists/workers/index.html To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe
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)