[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20130604.173612.500926582139079555.davem@davemloft.net>
Date: Tue, 04 Jun 2013 17:36:12 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: dborkman@...hat.com
Cc: tgraf@...g.ch, netdev@...r.kernel.org, horms@...ge.net.au,
dborkmann@...hat.com
Subject: Re: [PATCH net-next v2] pktgen: Fix position of ip and udp header
From: Daniel Borkmann <dborkman@...hat.com>
Date: Tue, 04 Jun 2013 00:03:00 +0200
> 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>
Applied.
--
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