lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20121107.185513.577120386806348661.davem@davemloft.net>
Date:	Wed, 07 Nov 2012 18:55:13 -0500 (EST)
From:	David Miller <davem@...emloft.net>
To:	Paul.Chavent@...ra.fr
Cc:	netdev@...r.kernel.org
Subject: Re: [PATCH net-next v3] packet: tx_ring: allow the user to choose
 tx data offset

From: Paul Chavent <Paul.Chavent@...ra.fr>
Date: Wed,  7 Nov 2012 10:10:47 +0100

> The tx data offset of packet mmap tx ring used to be :
> (TPACKET2_HDRLEN - sizeof(struct sockaddr_ll))
> 
> The problem is that, with SOCK_RAW socket, the payload (14 bytes after
> the beginning of the user data) is misaligned.
> 
> This patch allows to let the user gives an offset for it's tx data if
> he desires.
> 
> Set sock option PACKET_TX_HAS_OFF to 1, then specify in each frame of
> your tx ring tp_net for SOCK_DGRAM, or tp_mac for SOCK_RAW.
> 
> Signed-off-by: Paul Chavent <paul.chavent@...ra.fr>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ