diff options
author | Dmitry Safonov <[email protected]> | 2023-12-04 19:00:41 +0000 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2023-12-06 12:36:55 +0100 |
commit | da7dfaa6d6f731c30eca6ffa808b83634d43e26f (patch) | |
tree | 6664d5827e0611238fc46e4225a8b435754d72a7 /net/ipv4/tcp_input.c | |
parent | 714589c2742209cc228991b115e48548fb8d89cf (diff) |
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 <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions