Thread (8 messages) flat view 8 messages, 3 authors, 2024-06-20

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

From: Paolo Abeni <pabeni@redhat.com>
Date: 2024-06-20 09:40:37
Also in: netfilter-devel

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help