selftests: mptcp: join: fix AF_INET6 variable
The Fixes commit is a backport renaming a variable, from AF_INET6 to
MPTCP_LIB_AF_INET6.
The commit has been applied without conflicts, except that it missed one
extra variable that was in v6.6, but not in the version linked to the
Fixes commit.
This variable has then been renamed too to avoid these errors:
LISTENER_CREATED 10.0.2.1:10100 ./mptcp_join.sh: line 2944: [: 2: unary operator expected
LISTENER_CLOSED 10.0.2.1:10100 ./mptcp_join.sh: line 2944: [: 2: unary operator expected
Fixes: a17d141912
("selftests: mptcp: declare event macros in mptcp_lib")
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a772014594
commit
690c7fa03e
|
@ -2941,7 +2941,7 @@ verify_listener_events()
|
|||
type=$(mptcp_lib_evts_get_info type "$evt" "$e_type")
|
||||
family=$(mptcp_lib_evts_get_info family "$evt" "$e_type")
|
||||
sport=$(mptcp_lib_evts_get_info sport "$evt" "$e_type")
|
||||
if [ $family ] && [ $family = $AF_INET6 ]; then
|
||||
if [ $family ] && [ $family = $MPTCP_LIB_AF_INET6 ]; then
|
||||
saddr=$(mptcp_lib_evts_get_info saddr6 "$evt" "$e_type")
|
||||
else
|
||||
saddr=$(mptcp_lib_evts_get_info saddr4 "$evt" "$e_type")
|
||||
|
|
Loading…
Reference in New Issue