Re: [tcpdump-workers] [PATCH] enable memory mapped access to ethernet device for linux

2007-12-06 Thread Guy Harris
On Dec 6, 2007, at 9:54 AM, Alexander Dupuy wrote: Paolo Abeni writes: It does not use environment variables to control the memory mapped ring parameters; instead the requested snap len is used: the low order bytes are used to select the ring frame size and the high order bytes are used t

[tcpdump-workers] [PATCH] enable memory mapped access to ethernet device for linux

2007-12-06 Thread Alexander Dupuy
Paolo Abeni writes: It does not use environment variables to control the memory mapped ring parameters; instead the requested snap len is used: the low order bytes are used to select the ring frame size and the high order bytes are used to select the ring frame number. If the high order bytes is

[tcpdump-workers] another attempt to enable memory mapped access to ethernet devicefor linux

2007-12-06 Thread Paolo Abeni
hello, following the discussion on the implementation of the memory mapped access for linux, I rework my previous patch to avoid abusing the current API. It now try to use a default ring size of 4M, reducing it's size if the allocation of the ring fails. I did not add any new pcap function to set