<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/tools/testing/selftests/netfilter, branch v5.9</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v5.9</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v5.9'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2020-08-28T18:12:00Z</updated>
<entry>
<title>selftests: netfilter: add command usage</title>
<updated>2020-08-28T18:12:00Z</updated>
<author>
<name>Fabian Frederick</name>
<email>fabf@skynet.be</email>
</author>
<published>2020-08-23T18:18:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=67afbda69645a89adb365f1dfa35181e09cd7e80'/>
<id>urn:sha1:67afbda69645a89adb365f1dfa35181e09cd7e80</id>
<content type='text'>
Avoid bad command arguments.
Based on tools/power/cpupower/bench/cpufreq-bench_plot.sh

Signed-off-by: Fabian Frederick &lt;fabf@skynet.be&gt;
Signed-off-by: Pablo Neira Ayuso &lt;pablo@netfilter.org&gt;
</content>
</entry>
<entry>
<title>selftests: netfilter: simplify command testing</title>
<updated>2020-08-28T18:11:59Z</updated>
<author>
<name>Fabian Frederick</name>
<email>fabf@skynet.be</email>
</author>
<published>2020-08-23T18:17:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2f4bba4ef77cf01ae805554e8f1d98e57b28f25f'/>
<id>urn:sha1:2f4bba4ef77cf01ae805554e8f1d98e57b28f25f</id>
<content type='text'>
Fix some shellcheck SC2181 warnings:
"Check exit code directly with e.g. 'if mycmd;', not indirectly with
$?." as suggested by Stefano Brivio.

Signed-off-by: Fabian Frederick &lt;fabf@skynet.be&gt;
Signed-off-by: Pablo Neira Ayuso &lt;pablo@netfilter.org&gt;
</content>
</entry>
<entry>
<title>selftests: netfilter: remove unused variable in make_file()</title>
<updated>2020-08-28T18:11:59Z</updated>
<author>
<name>Fabian Frederick</name>
<email>fabf@skynet.be</email>
</author>
<published>2020-08-23T18:17:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d721b68654d0fcf8930fd0d2edfff78df82fb8c4'/>
<id>urn:sha1:d721b68654d0fcf8930fd0d2edfff78df82fb8c4</id>
<content type='text'>
'who' variable was not used in make_file()
Problem found using Shellcheck

Signed-off-by: Fabian Frederick &lt;fabf@skynet.be&gt;
Signed-off-by: Pablo Neira Ayuso &lt;pablo@netfilter.org&gt;
</content>
</entry>
<entry>
<title>selftests: netfilter: exit on invalid parameters</title>
<updated>2020-08-28T18:11:59Z</updated>
<author>
<name>Fabian Frederick</name>
<email>fabf@skynet.be</email>
</author>
<published>2020-08-23T18:15:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a7bf670ebe192120cbe0a0ab6448baad6fbf7983'/>
<id>urn:sha1:a7bf670ebe192120cbe0a0ab6448baad6fbf7983</id>
<content type='text'>
exit script with comments when parameters are wrong during address
addition. No need for a message when trying to change MTU with lower
values: output is self-explanatory.
Use short testing sequence to avoid shellcheck warnings
(suggested by Stefano Brivio).

Signed-off-by: Fabian Frederick &lt;fabf@skynet.be&gt;
Signed-off-by: Pablo Neira Ayuso &lt;pablo@netfilter.org&gt;
</content>
</entry>
<entry>
<title>selftests: netfilter: fix header example</title>
<updated>2020-08-28T18:11:58Z</updated>
<author>
<name>Fabian Frederick</name>
<email>fabf@skynet.be</email>
</author>
<published>2020-08-23T18:15:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=da2f849e89ed621f3e0688ec5ba92725ed9f0f92'/>
<id>urn:sha1:da2f849e89ed621f3e0688ec5ba92725ed9f0f92</id>
<content type='text'>
nft_flowtable.sh is made for bash not sh.
Also give values which not return "RTNETLINK answers: Invalid argument"

Signed-off-by: Fabian Frederick &lt;fabf@skynet.be&gt;
Signed-off-by: Pablo Neira Ayuso &lt;pablo@netfilter.org&gt;
</content>
</entry>
<entry>
<title>selftests: netfilter: kill running process only</title>
<updated>2020-08-13T02:25:16Z</updated>
<author>
<name>Fabian Frederick</name>
<email>fabf@skynet.be</email>
</author>
<published>2020-08-07T19:32:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d8bb9abe21071c64d077f9db3b403823a389464f'/>
<id>urn:sha1:d8bb9abe21071c64d077f9db3b403823a389464f</id>
<content type='text'>
Avoid noise like the following:
nft_flowtable.sh: line 250: kill: (4691) - No such process

Signed-off-by: Fabian Frederick &lt;fabf@skynet.be&gt;
Signed-off-by: Pablo Neira Ayuso &lt;pablo@netfilter.org&gt;
</content>
</entry>
<entry>
<title>selftests: netfilter: add MTU arguments to flowtables</title>
<updated>2020-08-13T02:25:11Z</updated>
<author>
<name>Fabian Frederick</name>
<email>fabf@skynet.be</email>
</author>
<published>2020-08-07T19:31:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=dd08734d8aca31f8991b26cd69d6bb99b617e451'/>
<id>urn:sha1:dd08734d8aca31f8991b26cd69d6bb99b617e451</id>
<content type='text'>
Add some documentation, default values defined in original
script and Originator/Link/Responder arguments
using getopts like in tools/power/cpupower/bench/cpufreq-bench_plot.sh

Signed-off-by: Fabian Frederick &lt;fabf@skynet.be&gt;
Signed-off-by: Pablo Neira Ayuso &lt;pablo@netfilter.org&gt;
</content>
</entry>
<entry>
<title>selftests: netfilter: add checktool function</title>
<updated>2020-08-13T02:25:08Z</updated>
<author>
<name>Fabian Frederick</name>
<email>fabf@skynet.be</email>
</author>
<published>2020-08-07T19:31:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6d006a4e38d5a52ef27a8204ac358b96da8148ec'/>
<id>urn:sha1:6d006a4e38d5a52ef27a8204ac358b96da8148ec</id>
<content type='text'>
avoid repeating the same test for different toolcheck

Signed-off-by: Fabian Frederick &lt;fabf@skynet.be&gt;
Signed-off-by: Pablo Neira Ayuso &lt;pablo@netfilter.org&gt;
</content>
</entry>
<entry>
<title>selftests: netfilter: add meta iif/oif match test</title>
<updated>2020-08-03T10:02:22Z</updated>
<author>
<name>Florian Westphal</name>
<email>fw@strlen.de</email>
</author>
<published>2020-08-02T01:26:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2ef740da4fef947fb4614808fb61ca8ccb313e0b'/>
<id>urn:sha1:2ef740da4fef947fb4614808fb61ca8ccb313e0b</id>
<content type='text'>
simple test case, but would have caught this:

FAIL: iifgroupcount, want "packets 2", got
table inet filter {
        counter iifgroupcount {
                packets 0 bytes 0
        }
}

Signed-off-by: Florian Westphal &lt;fw@strlen.de&gt;
Signed-off-by: Pablo Neira Ayuso &lt;pablo@netfilter.org&gt;
</content>
</entry>
<entry>
<title>selftests: netfilter: add test case for conntrack helper assignment</title>
<updated>2020-06-24T22:50:31Z</updated>
<author>
<name>Florian Westphal</name>
<email>fw@strlen.de</email>
</author>
<published>2020-06-22T08:28:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=619ae8e0697a6fb85b99b19137590c7c337c579e'/>
<id>urn:sha1:619ae8e0697a6fb85b99b19137590c7c337c579e</id>
<content type='text'>
check that 'nft ... ct helper set &lt;foo&gt;' works:
 1. configure ftp helper via nft and assign it to
    connections on port 2121
 2. check with 'conntrack -L' that the next connection
    has the ftp helper attached to it.

Also add a test for auto-assign (old behaviour).

Signed-off-by: Florian Westphal &lt;fw@strlen.de&gt;
Signed-off-by: Pablo Neira Ayuso &lt;pablo@netfilter.org&gt;
</content>
</entry>
</feed>
