]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip: mptcp: 'id 0' is only for 'del'
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Sat, 27 Jul 2024 10:10:36 +0000 (12:10 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 2 Aug 2024 17:47:39 +0000 (10:47 -0700)
commitb176b9f40368735b5bd4e6d49f8ebcbe8b8bef4a
treeb7b6c18dd8fbbedb3f01d7049d7cbae1d60c61d2
parent8145a842736d1b7dc3f15c1b9024ffdb943824df
ip: mptcp: 'id 0' is only for 'del'

Adding an endpoint with 'id 0' is not allowed. In this case, the kernel
will ignore this 'id 0' and set another one.

Similarly, because there are no endpoints with this 'id 0', changing an
attribute for such endpoint will not be possible.

To avoid some confusions, it sounds better to clearly report an error
that the ID cannot be 0 in these cases.

Acked-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/ipmptcp.c