[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <51AD1294.8090604@redhat.com>
Date: Tue, 04 Jun 2013 00:03:00 +0200
From: Daniel Borkmann <dborkman@...hat.com>
To: Thomas Graf <tgraf@...g.ch>
CC: davem@...emloft.net, netdev@...r.kernel.org,
Simon Horman <horms@...ge.net.au>,
Daniel Borkmann <dborkmann@...hat.com>
Subject: Re: [PATCH net-next v2] pktgen: Fix position of ip and udp header
On 06/03/2013 11:49 PM, Thomas Graf wrote:
> skb_set_network_header() expects an offset based on the data pointer
> whereas skb_tail_offset() also includes the headroom. This resulted
> in the ip header being written in a wrong location.
>
> Use return values of skb_put() directly and rely on skb->len to
> set mac, network, and transport header.
>
> Cc: Simon Horman <horms@...ge.net.au>
> Cc: Daniel Borkmann <dborkmann@...hat.com>
> Assisted-by: Daniel Borkmann <dborkmann@...hat.com>
> Signed-off-by: Thomas Graf <tgraf@...g.ch>
Thanks !
Acked-by: Daniel Borkmann <dborkmann@...hat.com>
--
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