pktgen: Fix position of ip and udp header
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 <a105fd58f578dea0be108941d4c59d15396e1855@verge.net.au>
Cc: Daniel Borkmann <187b7ae124248a7eb90471ec949dc21787064f6b@redhat.com>
Assisted-by: Daniel Borkmann <187b7ae124248a7eb90471ec949dc21787064f6b@redhat.com>
Signed-off-by: Thomas Graf <17c2d8920621522552b392f72d8fdb4d1e866b44@suug.ch>
Acked-by: Daniel Borkmann <187b7ae124248a7eb90471ec949dc21787064f6b@redhat.com>
Signed-off-by: David S. Miller <fe08d3c717adf2ae63592e4c9aec6e3e404d8e3e@davemloft.net>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs