This repository was archived by the owner on Oct 31, 2024. It is now read-only.
Commit 371efc2
selftests: mptcp: add mptcp_lib_is_v6
commit b850f2c upstream.
To avoid duplicated code in different MPTCP selftests, we can add
and use helpers defined in mptcp_lib.sh.
is_v6() helper is defined in mptcp_connect.sh, mptcp_join.sh and
mptcp_sockopt.sh, so export it into mptcp_lib.sh and rename it as
mptcp_lib_is_v6(). Use this new helper in all scripts.
Reviewed-by: Matthieu Baerts <matttbe@kernel.org>
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <martineau@kernel.org>
Link: https://lore.kernel.org/r/20231128-send-net-next-2023107-v4-10-8d6b94150f6b@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 42f4277 commit 371efc2
4 files changed
Lines changed: 15 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | 313 | | |
320 | 314 | | |
321 | 315 | | |
| |||
324 | 318 | | |
325 | 319 | | |
326 | 320 | | |
327 | | - | |
| 321 | + | |
328 | 322 | | |
329 | 323 | | |
330 | 324 | | |
| |||
620 | 614 | | |
621 | 615 | | |
622 | 616 | | |
623 | | - | |
| 617 | + | |
624 | 618 | | |
625 | 619 | | |
626 | 620 | | |
627 | 621 | | |
628 | | - | |
| 622 | + | |
629 | 623 | | |
630 | 624 | | |
631 | 625 | | |
| |||
693 | 687 | | |
694 | 688 | | |
695 | 689 | | |
696 | | - | |
| 690 | + | |
697 | 691 | | |
698 | 692 | | |
699 | 693 | | |
| |||
726 | 720 | | |
727 | 721 | | |
728 | 722 | | |
729 | | - | |
| 723 | + | |
730 | 724 | | |
731 | 725 | | |
732 | 726 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | 595 | | |
602 | 596 | | |
603 | 597 | | |
| |||
877 | 871 | | |
878 | 872 | | |
879 | 873 | | |
880 | | - | |
| 874 | + | |
881 | 875 | | |
882 | 876 | | |
883 | 877 | | |
| |||
929 | 923 | | |
930 | 924 | | |
931 | 925 | | |
932 | | - | |
| 926 | + | |
933 | 927 | | |
934 | 928 | | |
935 | 929 | | |
| |||
971 | 965 | | |
972 | 966 | | |
973 | 967 | | |
974 | | - | |
| 968 | + | |
975 | 969 | | |
976 | 970 | | |
977 | 971 | | |
| |||
3339 | 3333 | | |
3340 | 3334 | | |
3341 | 3335 | | |
3342 | | - | |
| 3336 | + | |
3343 | 3337 | | |
3344 | 3338 | | |
3345 | 3339 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
230 | 235 | | |
231 | 236 | | |
232 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | 164 | | |
171 | 165 | | |
172 | 166 | | |
| |||
183 | 177 | | |
184 | 178 | | |
185 | 179 | | |
186 | | - | |
| 180 | + | |
187 | 181 | | |
188 | 182 | | |
189 | 183 | | |
| |||
0 commit comments