diff options
author | Thomas Graf <tgraf@suug.ch> | 2013-06-03 11:49:23 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-04 17:35:45 -0700 |
commit | 525cebedb32a87fa48584bc44e14170beb2c10d1 (patch) | |
tree | 17a3e08c3768f02e8dd59ad0583c2bba17c4d4db /net/core/ethtool.c | |
parent | 10e179e364beafc23d837e81cf98d99720f42551 (diff) |
pktgen: Fix position of ip and udp header
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@verge.net.au>
Cc: Daniel Borkmann <dborkmann@redhat.com>
Assisted-by: Daniel Borkmann <dborkmann@redhat.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Acked-by: Daniel Borkmann <dborkmann@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/ethtool.c')
0 files changed, 0 insertions, 0 deletions