tcpdump mailing list archives
Re: [patch] zerocopy bpf for libpcap
From: Guy Harris <guy () alum mit edu>
Date: Tue, 16 Sep 2008 01:29:44 -0700
On Sep 16, 2008, at 1:00 AM, Guy Harris wrote:
Also, note that there's an API to set the buffer size; perhaps, if that API was called - i.e., if p->opt.buffer_size is non-zero - it should set the mapped buffer size based on that.
I've checked in code that should handle that, and also cleaned up the indentation a bit and changed some if statements to make it clearer which branch handles the zerocopy case and which branch handles the non-zerocopy case. Again, you might want to test to make sure that works.
- This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- [patch] zerocopy bpf for libpcap Christian Peron (Sep 12)
- Re: [patch] zerocopy bpf for libpcap Guy Harris (Sep 16)
- Re: [patch] zerocopy bpf for libpcap Guy Harris (Sep 16)
- Re: [patch] zerocopy bpf for libpcap Guy Harris (Sep 16)