diff options
author | Sabrina Dubroca <sd@queasysnail.net> | 2015-02-04 23:08:50 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-06 00:41:34 +0100 |
commit | 7744b5f3693cc06695cb9d6667671c790282730f (patch) | |
tree | 5c444515404a89170ab1b10c353682a5573d9024 /drivers/net/arcnet/com20020-pci.c | |
parent | net: ipv6: allow explicitly choosing optimistic addresses (diff) | |
download | linux-7744b5f3693cc06695cb9d6667671c790282730f.tar.xz linux-7744b5f3693cc06695cb9d6667671c790282730f.zip |
pktgen: fix UDP checksum computation
This patch fixes two issues in UDP checksum computation in pktgen.
First, the pseudo-header uses the source and destination IP
addresses. Currently, the ports are used for IPv4.
Second, the UDP checksum covers both header and data. So we need to
generate the data earlier (move pktgen_finalize_skb up), and compute
the checksum for UDP header + data.
Fixes: c26bf4a51308c ("pktgen: Add UDPCSUM flag to support UDP checksums")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/arcnet/com20020-pci.c')
0 files changed, 0 insertions, 0 deletions