mbox series

[v2,0/3] shell: Fixes for disabled IPv6

Message ID 20220204194648.32165-1-pvorel@suse.cz
Headers show
Series shell: Fixes for disabled IPv6 | expand

Message

Petr Vorel Feb. 4, 2022, 7:46 p.m. UTC
Hi all,

changes v2->v3:
* Partly rewritten containers netns to use tst_net.sh. Further cleanup
  will be done, but changes are already big and for sake of
  working IPv6 is this enough.
  TODO: Test should be further cleanup to use tst_rhost_run over different
  LTP_NETNS and tst_ping instead of $tping.

* Use only $TST_NET_IPV6_ENABLED for both lhost and rhost. ATM when
  use TST_NET_SKIP_VARIABLE_INIT=1 it detects only lhost. This is useful
  for containers netns tests (and will be needed even after 

NOTE: no other shell tests which use only tst_test.sh need this
(if any needs in the future, can be migrated the same way as
netns_helper.sh currently).

C tests are ok, because they can check EAFNOSUPPORT (as done for SCTP
tests: https://patchwork.ozlabs.org/project/ltp/list/?series=284336)

NOTE: this is really v3, because I forget to add v2 in previous version
https://patchwork.ozlabs.org/project/ltp/list/?series=282638

Kind regards,
Petr

Petr Vorel (3):
  tst_net.sh: Fix for disabled IPv6
  broken_ip-nexthdr.sh: Check IPv6 support before forcing it
  netns: Rewrite to use tst_net.sh

 runtest/containers                            |  32 +--
 .../kernel/containers/netns/netns_breakns.sh  |  29 +--
 .../kernel/containers/netns/netns_comm.sh     |  53 +----
 .../kernel/containers/netns/netns_helper.sh   | 225 +++++++-----------
 testcases/lib/tst_net.sh                      |  71 +++++-
 .../stress/broken_ip/broken_ip-nexthdr.sh     |   1 +
 6 files changed, 169 insertions(+), 242 deletions(-)