]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests: net: ip_local_port_range: define IPPROTO_MPTCP
authorMaxim Galaganov <max@internet.ru>
Fri, 9 Feb 2024 13:25:11 +0000 (16:25 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 13 Feb 2024 00:39:28 +0000 (16:39 -0800)
commitc2b3ec36b422a331e153a9e40d14adcf82685cee
tree04802f23262f4c20e8c8f03b5ab04119c85ad56b
parent73d9629e1c8c1982f13688c4d1019c3994647ccc
selftests: net: ip_local_port_range: define IPPROTO_MPTCP

Older glibc's netinet/in.h may leave IPPROTO_MPTCP undefined when
building ip_local_port_range.c, that leads to "error: use of undeclared
identifier 'IPPROTO_MPTCP'".

Define IPPROTO_MPTCP in such cases, just like in other MPTCP selftests.

Fixes: 122db5e3634b ("selftests/net: add MPTCP coverage for IP_LOCAL_PORT_RANGE")
Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
Closes: https://lore.kernel.org/netdev/CA+G9fYvGO5q4o_Td_kyQgYieXWKw6ktMa-Q0sBu6S-0y3w2aEQ@mail.gmail.com/
Signed-off-by: Maxim Galaganov <max@internet.ru>
Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Link: https://lore.kernel.org/r/20240209132512.254520-1-max@internet.ru
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/ip_local_port_range.c