tcpdump mailing list archives
[PATCH] enable memory mapped access to ethernet device for linux
From: "Paolo Abeni" <paolo.abeni () telecomitalia it>
Date: Wed, 05 Dec 2007 12:11:55 +0100
hi list, Following the discussion about the memory mapped access for Linux, I tried to rework some existing code (originally independently created by Simon Patarin and Phil Wood) to enable this functionality with the minimum impact on the current pcap code. 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 0, like in every current libpcap usage, a reasonable default is used. The poll function is used to implement the timeout in the read method: must I add some autoconf check for poll() availability ?!? or use select() instead ?!? I really appreciated any comments and or review on this matter (even a 'please don't try to push this thing ...' :-) Thanks, Paolo -------------------------------------------------------------------- CONFIDENTIALITY NOTICE This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to webmaster () telecomitalia it. Thank you www.telecomitalia.it --------------------------------------------------------------------
Attachment:
linux_enable_mmap.patch
Description:
- This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- [PATCH] enable memory mapped access to ethernet device for linux Paolo Abeni (Dec 05)
- Re: [PATCH] enable memory mapped access to ethernet device for linux Gianluca Varenni (Dec 05)
- Re: [PATCH] enable memory mapped access toethernet device for linux Paolo Abeni (Dec 05)
- Re: [PATCH] enable memory mapped access toethernet Gregor Maier (Dec 05)
- Re: [PATCH] enable memory mapped access toethernet Gianluca Varenni (Dec 05)
- Re: [PATCH] enable memory mapped access to ethernet devices Abeni Paolo (Dec 05)
- Re: [PATCH] enable memory mapped access toethernet device for linux Paolo Abeni (Dec 05)
- Re: [PATCH] enable memory mapped access to ethernet device for linux Gianluca Varenni (Dec 05)
- <Possible follow-ups>
- [PATCH] enable memory mapped access to ethernet device for linux Alexander Dupuy (Dec 06)
- Re: [PATCH] enable memory mapped access to ethernet device for linux Guy Harris (Dec 06)
- Re: [PATCH] enable memory mapped access to ethernet Andy Howell (Dec 07)
- Re: [PATCH] enable memory mapped access to ethernet device for linux Gianluca Varenni (Dec 07)
- Re: [PATCH] enable memory mapped access to ethernet Matthew Luckie (Dec 07)
- Re: [PATCH] enable memory mapped access to ethernet device for linux Guy Harris (Dec 06)