summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>2026-06-05 12:21:45 +0300
committerJakub Kicinski <kuba@kernel.org>2026-06-12 01:33:37 +0300
commitf4a58ffbd4cf6e51b252ab64054584cad2750160 (patch)
tree48d84b278aa409cc90da23937d845231cc5006f6 /tools/lib/python
parent70c82b84b6a7c6e4dff52c9c42d85a55de9c674f (diff)
downloadlinux-f4a58ffbd4cf6e51b252ab64054584cad2750160.tar.xz
mptcp: options: suboptions sizes can be negative
Use a signed int for the returned size, because when other options are dropped, the size can be negative, e.g. to send an echo ADD_ADDR with a v4 address, and no port. The behaviour is not changed, because it was working as expected with an overflow. But it is clearer like this, and it will help later on. Even if, for the moment, only the ADD_ADDR size can be negative in some cases, a signed int is now used for all mptcp_established_options_*() helpers, not to mismatch the type, and as a question of uniformity. Reviewed-by: Mat Martineau <martineau@kernel.org> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Link: https://patch.msgid.link/20260605-net-next-mptcp-add-addr6-port-ts-v2-1-758e7ca73f4d@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions