public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] network/iptables: add ipv6 support
Date: Thu, 9 Jan 2020 11:51:01 +0100	[thread overview]
Message-ID: <20200109105101.GA30367@dell5510> (raw)
In-Reply-To: <f65c32e4-e426-e6c9-5627-51bed11c31e6@oracle.com>

Hi Alexey,

> > now:
> > /bin/sh: 1: nft: not found
> > nft01 1 TBROK: nft add table ip filter failed

> Good catch, what about starting with init() in do_setup()?

> diff --git a/testcases/network/iptables/nft01.sh b/testcases/network/iptables/nft01.sh
> index 1ae086678..bf2a53c28 100755
> --- a/testcases/network/iptables/nft01.sh
> +++ b/testcases/network/iptables/nft01.sh
> @@ -13,6 +13,7 @@ cleanup_chain=0

>  do_setup()
>  {
> +       init
>         local ip_table="ip${TST_IPV6}"

>         if ! nft list table $ip_table filter > /dev/null 2>&1; then
> @@ -23,7 +24,6 @@ do_setup()
>                 ROD nft add chain $ip_table filter INPUT '{ type filter hook input priority 0; }'
>                 cleanup_chain=1
>         fi
> -       init
>  }

Great, what a simple fix :).

Kind regards,
Petr

  reply	other threads:[~2020-01-09 10:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-26 13:58 [LTP] [PATCH] network/iptables: add ipv6 support Alexey Kodanev
2020-01-03 12:48 ` Petr Vorel
2020-01-09 10:17   ` Alexey Kodanev
2020-01-09 10:51     ` Petr Vorel [this message]
2020-01-09 14:16       ` Alexey Kodanev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200109105101.GA30367@dell5510 \
    --to=pvorel@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox