Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

doc: remove out of date links and info from packet mmap

The packet_mmap documentation had links to no longer existing web
sites; replace with other site which has similar example.

Support for packet mmap has been in mainline versions of libpcap
for several years.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Stephen Hemminger and committed by
David S. Miller
2b221d20 ce3db6aa

+5 -17
+5 -17
Documentation/networking/packet_mmap.txt
··· 7 7 i) capture network traffic with utilities like tcpdump, ii) transmit network 8 8 traffic, or any other that needs raw access to network interface. 9 9 10 - You can find the latest version of this document at: 11 - http://wiki.ipxwarzone.com/index.php5?title=Linux_packet_mmap 12 - 13 10 Howto can be found at: 14 - http://wiki.gnu-log.net (packet_mmap) 11 + https://sites.google.com/site/packetmmap/ 15 12 16 13 Please send your comments to 17 14 Ulisses Alonso Camaró <uaca@i.hate.spam.alumni.uv.es> 18 - Johann Baudy <johann.baudy@gnu-log.net> 15 + Johann Baudy 19 16 20 17 ------------------------------------------------------------------------------- 21 18 + Why use PACKET_MMAP ··· 48 51 is a de facto standard, portable across nearly all operating systems 49 52 including Win32. 50 53 51 - Said that, at time of this writing, official libpcap 0.8.1 is out and doesn't include 52 - support for PACKET_MMAP, and also probably the libpcap included in your distribution. 53 - 54 - I'm aware of two implementations of PACKET_MMAP in libpcap: 55 - 56 - http://wiki.ipxwarzone.com/ (by Simon Patarin, based on libpcap 0.6.2) 57 - http://public.lanl.gov/cpw/ (by Phil Wood, based on lastest libpcap) 58 - 59 - The rest of this document is intended for people who want to understand 60 - the low level details or want to improve libpcap by including PACKET_MMAP 61 - support. 54 + Packet MMAP support was integrated into libpcap around the time of version 1.3.0; 55 + TPACKET_V3 support was added in version 1.5.0 62 56 63 57 -------------------------------------------------------------------------------- 64 58 + How to use mmap() directly to improve capture process ··· 162 174 /* bind socket to eth0 */ 163 175 bind(this->socket, (struct sockaddr *)&my_addr, sizeof(struct sockaddr_ll)); 164 176 165 - A complete tutorial is available at: http://wiki.gnu-log.net/ 177 + A complete tutorial is available at: https://sites.google.com/site/packetmmap/ 166 178 167 179 By default, the user should put data at : 168 180 frame base + TPACKET_HDRLEN - sizeof(struct sockaddr_ll)