diff options
| author | Jakub Kicinski <[email protected]> | 2025-06-24 18:32:58 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2025-06-26 08:50:49 +0000 |
| commit | 8d89661a36dd3bb8c9902cff36dc0c144dce3faf (patch) | |
| tree | 522a6d12aba7654bf4e5fdea7b10bef9c7cc5e49 /net/unix/af_unix.c | |
| parent | atm: Release atm_dev_mutex after removing procfs in atm_dev_deregister(). (diff) | |
| download | kernel-8d89661a36dd3bb8c9902cff36dc0c144dce3faf.tar.gz kernel-8d89661a36dd3bb8c9902cff36dc0c144dce3faf.zip | |
net: selftests: fix TCP packet checksum
The length in the pseudo header should be the length of the L3 payload
AKA the L4 header+payload. The selftest code builds the packet from
the lower layers up, so all the headers are pushed already when it
constructs L4. We need to subtract the lower layer headers from skb->len.
Fixes: 3e1e58d64c3d ("net: add generic selftest support")
Signed-off-by: Jakub Kicinski <[email protected]>
Reviewed-by: Gerhard Engleder <[email protected]>
Reported-by: Oleksij Rempel <[email protected]>
Tested-by: Oleksij Rempel <[email protected]>
Reviewed-by: Oleksij Rempel <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
