Skip to content

Commit 2b221d2

Browse files
shemmingerdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ce3db6a commit 2b221d2

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

Documentation/networking/packet_mmap.txt

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@ socket interface on 2.4/2.6/3.x kernels. This type of sockets is used for
77
i) capture network traffic with utilities like tcpdump, ii) transmit network
88
traffic, or any other that needs raw access to network interface.
99

10-
You can find the latest version of this document at:
11-
http://wiki.ipxwarzone.com/index.php5?title=Linux_packet_mmap
12-
1310
Howto can be found at:
14-
http://wiki.gnu-log.net (packet_mmap)
11+
https://sites.google.com/site/packetmmap/
1512

1613
Please send your comments to
1714
Ulisses Alonso Camaró <[email protected]>
18-
Johann Baudy <[email protected]>
15+
Johann Baudy
1916

2017
-------------------------------------------------------------------------------
2118
+ Why use PACKET_MMAP
@@ -51,17 +48,8 @@ From the user standpoint, you should use the higher level libpcap library, which
5148
is a de facto standard, portable across nearly all operating systems
5249
including Win32.
5350

54-
Said that, at time of this writing, official libpcap 0.8.1 is out and doesn't include
55-
support for PACKET_MMAP, and also probably the libpcap included in your distribution.
56-
57-
I'm aware of two implementations of PACKET_MMAP in libpcap:
58-
59-
http://wiki.ipxwarzone.com/ (by Simon Patarin, based on libpcap 0.6.2)
60-
http://public.lanl.gov/cpw/ (by Phil Wood, based on lastest libpcap)
61-
62-
The rest of this document is intended for people who want to understand
63-
the low level details or want to improve libpcap by including PACKET_MMAP
64-
support.
51+
Packet MMAP support was integrated into libpcap around the time of version 1.3.0;
52+
TPACKET_V3 support was added in version 1.5.0
6553

6654
--------------------------------------------------------------------------------
6755
+ How to use mmap() directly to improve capture process
@@ -174,7 +162,7 @@ As capture, each frame contains two parts:
174162
/* bind socket to eth0 */
175163
bind(this->socket, (struct sockaddr *)&my_addr, sizeof(struct sockaddr_ll));
176164

177-
A complete tutorial is available at: http://wiki.gnu-log.net/
165+
A complete tutorial is available at: https://sites.google.com/site/packetmmap/
178166

179167
By default, the user should put data at :
180168
frame base + TPACKET_HDRLEN - sizeof(struct sockaddr_ll)

0 commit comments

Comments
 (0)