Skip to content

Commit 690c7fa

Browse files
matttbegregkh
authored andcommitted
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: a17d141 ("selftests: mptcp: declare event macros in mptcp_lib") Signed-off-by: Matthieu Baerts (NGI0) <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a772014 commit 690c7fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/net/mptcp/mptcp_join.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2941,7 +2941,7 @@ verify_listener_events()
29412941
type=$(mptcp_lib_evts_get_info type "$evt" "$e_type")
29422942
family=$(mptcp_lib_evts_get_info family "$evt" "$e_type")
29432943
sport=$(mptcp_lib_evts_get_info sport "$evt" "$e_type")
2944-
if [ $family ] && [ $family = $AF_INET6 ]; then
2944+
if [ $family ] && [ $family = $MPTCP_LIB_AF_INET6 ]; then
29452945
saddr=$(mptcp_lib_evts_get_info saddr6 "$evt" "$e_type")
29462946
else
29472947
saddr=$(mptcp_lib_evts_get_info saddr4 "$evt" "$e_type")

0 commit comments

Comments
 (0)