[PATCH net 0/3] selftests/net: Isolate l2_tos_ttl_inherit.sh in its own netns.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



l2_tos_ttl_inherit.sh uses a veth pair to run its tests, but only one
of the veth interfaces runs in a dedicated netns. The other one remains
in the initial namespace where the existing network configuration can
interfere with the setup used for the tests.

Isolate both veth devices in their own netns and ensure everything gets
cleaned up when the script exits.

Link: https://lore.kernel.org/netdev/924f1062-ab59-9b88-3b43-c44e73a30387@xxxxxxxxxxxx/

Guillaume Nault (3):
  selftests/net: l2_tos_ttl_inherit.sh: Set IPv6 addresses with "nodad".
  selftests/net: l2_tos_ttl_inherit.sh: Run tests in their own netns.
  selftests/net: l2_tos_ttl_inherit.sh: Ensure environment cleanup on
    failure.

 .../selftests/net/l2_tos_ttl_inherit.sh       | 202 +++++++++++-------
 1 file changed, 129 insertions(+), 73 deletions(-)

-- 
2.30.2




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux