On 4/11/07, Robin Getz <[email protected]> wrote:
On Tue 10 Apr 2007 08:55, David Howells pondered: > Looking at alloc_pg_vec() in af_packet.c, I will place my bets on the > latter case. I don't know that this is a problem; it depends on how things > work, and that I don't know offhand. If someone can give me a simple test > program, I would be able to evaluate it better. Hmm - the only think I have used in the past is tcpdump/libpcap from http://public.lanl.gov/cpw/ Documentation/networking/packet_mmap.txt also seems to be a little dated, but does have some code snippets if you wanted to make something lightweight... Does anyone else on netdev have a small test app?
Here, in the attachment I wrote a small test app. Please correct if there is anything wrong, and feel free to improve it. -Aubrey
Attachment:
packet-mmap.tar.gz
Description: GNU Zip compressed data
- Follow-Ups:
- Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- From: David Howells <[email protected]>
- Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- From: Robin Getz <[email protected]>
- Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- References:
- Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- From: Robin Getz <[email protected]>
- Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- From: "Wu, Bryan" <[email protected]>
- Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- From: David Howells <[email protected]>
- Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- From: Robin Getz <[email protected]>
- Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- Prev by Date: [PATCH] console UTF-8 fixes
- Next by Date: Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS]
- Previous by thread: Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- Next by thread: Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- Index(es):