Lines Matching refs:with
5 This file documents the mmap() facility available with the PACKET
7 i) capture network traffic with utilities like tcpdump, ii) transmit network
88 the same way with or without PACKET_MMAP:
103 allocated RX and TX buffer ring with a single mmap() call.
118 bind() ---------> bind transmission socket with a network interface
138 In this case, you also need to bind(2) the TX_RING with sll_protocol = 0
141 Binding the socket to your network interface is mandatory (with zero copy) to
187 the frame (for payload alignment with SOCK_RAW mode for instance) you
188 can set tp_net (with SOCK_DGRAM) or tp_mac (with SOCK_RAW). In order
189 to make this work it must be enabled previously with setsockopt()
196 To setup PACKET_MMAP from user level code is done with a call like
229 Lets see an example, with the following values:
248 A frame can be of any size with the only condition it can fit in a block. A block
267 memory regions are allocated with calls to the __get_free_pages() function. As
282 respectively, with an i386 architecture.
287 The pagesize can also be determined dynamically with the getpagesize (2)
296 Currently, this structure is a dynamically allocated vector with kmalloc
328 <size-max> : is the maximum size of allocable with kmalloc (see /proc/slabinfo)
331 <max-order> : is the value defined with MAX_ORDER
363 Actually, this buffer size is not possible with an i386 architecture.
368 allocations are done with GFP_KERNEL priority, this basically means that
409 The mapping of the buffer in the user process is done with the conventional
423 RX and TX buffer ring has to be done with one call to mmap:
451 read entirely with recvfrom().
454 enabled previously with setsockopt() and
458 be read with recvfrom is limited like a normal socket.
462 statistics where checked with getsockopt() and
482 receives a packet it puts in the buffer and updates the status with
514 calls send(). Then all buffers with status equal to TP_STATUS_SEND_REQUEST are
516 frames with TP_STATUS_SENDING until the end of transfer.
548 structures, thus this also works on 64 bit kernel with 32 bit
569 1. Blocks can be configured with non-static frame-size
584 processes. This also works in combination with mmap(2) on packet sockets.
751 So it seems to be a good candidate to be used with packet fanout.
754 it with gcc -Wall -O2 blob.c, and try things like "./a.out eth0", etc.):
990 If there is a requirement to load the network with many packets in a similar
1015 of hardware timestamps with SIOCSHWTSTAMP (see related information from
1026 with the following possible bits ...
1042 with binary | with TP_STATUS_AVAILABLE, so you must check for that in your
1060 - Packet sockets work well together with Linux socket filters, thus you also