diff options
author | 2023-12-04 19:00:41 +0000 | |
---|---|---|
committer | 2023-12-06 12:36:55 +0100 | |
commit | da7dfaa6d6f731c30eca6ffa808b83634d43e26f (patch) | |
tree | 6664d5827e0611238fc46e4225a8b435754d72a7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Documentation/tcp: Fix an obvious typo (diff) | |
download | wireguard-linux-da7dfaa6d6f731c30eca6ffa808b83634d43e26f.tar.xz wireguard-linux-da7dfaa6d6f731c30eca6ffa808b83634d43e26f.zip |
net/tcp: Consistently align TCP-AO option in the header
Currently functions that pre-calculate TCP header options length use
unaligned TCP-AO header + MAC-length for skb reservation.
And the functions that actually write TCP-AO options into skb do align
the header. Nothing good can come out of this for ((maclen % 4) != 0).
Provide tcp_ao_len_aligned() helper and use it everywhere for TCP
header options space calculations.
Fixes: 1e03d32bea8e ("net/tcp: Add TCP-AO sign to outgoing packets")
Signed-off-by: Dmitry Safonov <dima@arista.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions