Re: [PATCH net 4/5] selftests: add selftest for the SRv6 End.DX4 behavior with netfilter

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

 



On Wed, 2024-06-19 at 19:05 +0200, Pablo Neira Ayuso wrote:
> +setup_hs()
> +{
> +	local hs=$1
> +	local rt=$2
> +	local tid=$3
> +	local hsname=hs-${hs}
> +	local rtname=rt-${rt}
> +	local rtveth=veth-t${tid}
> +
> +	# set the networking for the host
> +	ip netns add ${hsname}

Side note for a possible follow-up (_not_ intended to block this
PR!!!):

If you leverage setup_ns() from lib.sh, you can reduce a bit the code
duplication, and the script will avoid any possible netns name
conflict.

The same for the following test.

Cheers,

Paolo






[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux