Extend protocol fixture with test suits for MPTCP protocol. Add CONFIG_MPTCP and CONFIG_MPTCP_IPV6 options in config.
Unified · Split
| @@ -4,6 +4,8 @@ CONFIG_CGROUP_SCHED=y · 3 unmodified lines | |||
| 4 | CONFIG_INET=y | 4 | CONFIG_INET=y |
| 5 | CONFIG_IPV6=y | 5 | CONFIG_IPV6=y |
| 6 | CONFIG_KEYS=y | 6 | CONFIG_KEYS=y |
| 7 | CONFIG_MPTCP=y | ||
| 8 | CONFIG_MPTCP_IPV6=y | ||
| 7 | CONFIG_NET=y | 9 | CONFIG_NET=y |
| 8 | CONFIG_NET_NS=y | 10 | CONFIG_NET_NS=y |
| 9 | CONFIG_OVERLAY_FS=y | 11 | CONFIG_OVERLAY_FS=y |
| @@ -312,6 +312,17 @@ FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv4_tcp2) { · 311 unmodified lines | |||
| 312 | }, | 312 | }, |
| 313 | }; | 313 | }; |
| 314 | 314 | ||
| 315 | /* clang-format off */ | ||
| 316 | FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv4_mptcp) { | ||
| 317 | /* clang-format on */ | ||
| 318 | .sandbox = NO_SANDBOX, | ||
| 319 | .prot = { | ||
| 320 | .domain = AF_INET, | ||
| 321 | .type = SOCK_STREAM, | ||
| 322 | .protocol = IPPROTO_MPTCP, | ||
| 323 | }, | ||
| 324 | }; | ||
| 325 | |||
| 315 | /* clang-format off */ | 326 | /* clang-format off */ |
| 316 | FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv6_tcp1) { | 327 | FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv6_tcp1) { |
| 317 | /* clang-format on */ | 328 | /* clang-format on */ |
| @@ -335,6 +346,17 @@ FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv6_tcp2) { · 17 unmodified lines | |||
| 335 | }, | 346 | }, |
| 336 | }; | 347 | }; |
| 337 | 348 | ||
| 349 | /* clang-format off */ | ||
| 350 | FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv6_mptcp) { | ||
| 351 | /* clang-format on */ | ||
| 352 | .sandbox = NO_SANDBOX, | ||
| 353 | .prot = { | ||
| 354 | .domain = AF_INET6, | ||
| 355 | .type = SOCK_STREAM, | ||
| 356 | .protocol = IPPROTO_MPTCP, | ||
| 357 | }, | ||
| 358 | }; | ||
| 359 | |||
| 338 | /* clang-format off */ | 360 | /* clang-format off */ |
| 339 | FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv4_udp) { | 361 | FIXTURE_VARIANT_ADD(protocol, no_sandbox_with_ipv4_udp) { |
| 340 | /* clang-format on */ | 362 | /* clang-format on */ |
| @@ -398,6 +420,17 @@ FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv4_tcp2) { · 57 unmodified lines | |||
| 398 | }, | 420 | }, |
| 399 | }; | 421 | }; |
| 400 | 422 | ||
| 423 | /* clang-format off */ | ||
| 424 | FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv4_mptcp) { | ||
| 425 | /* clang-format on */ | ||
| 426 | .sandbox = TCP_SANDBOX, | ||
| 427 | .prot = { | ||
| 428 | .domain = AF_INET, | ||
| 429 | .type = SOCK_STREAM, | ||
| 430 | .protocol = IPPROTO_MPTCP, | ||
| 431 | }, | ||
| 432 | }; | ||
| 433 | |||
| 401 | /* clang-format off */ | 434 | /* clang-format off */ |
| 402 | FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv6_tcp1) { | 435 | FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv6_tcp1) { |
| 403 | /* clang-format on */ | 436 | /* clang-format on */ |
| @@ -421,6 +454,17 @@ FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv6_tcp2) { · 17 unmodified lines | |||
| 421 | }, | 454 | }, |
| 422 | }; | 455 | }; |
| 423 | 456 | ||
| 457 | /* clang-format off */ | ||
| 458 | FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv6_mptcp) { | ||
| 459 | /* clang-format on */ | ||
| 460 | .sandbox = TCP_SANDBOX, | ||
| 461 | .prot = { | ||
| 462 | .domain = AF_INET6, | ||
| 463 | .type = SOCK_STREAM, | ||
| 464 | .protocol = IPPROTO_MPTCP, | ||
| 465 | }, | ||
| 466 | }; | ||
| 467 | |||
| 424 | /* clang-format off */ | 468 | /* clang-format off */ |
| 425 | FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv4_udp) { | 469 | FIXTURE_VARIANT_ADD(protocol, tcp_sandbox_with_ipv4_udp) { |
| 426 | /* clang-format on */ | 470 | /* clang-format on */ |