]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: netfilter: missing error check when setting up veth interface
authorJeffrin Jose T <jeffrin@rajagiritech.edu.in>
Wed, 15 May 2019 06:44:04 +0000 (12:14 +0530)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 21 May 2019 18:12:20 +0000 (20:12 +0200)
commitaf9a4dedeb24093f20bb1c60e698ef476691f5de
tree61600f69f63687f96a423b2793ed7a0710748fb3
parent9b683911d10bc512e6efc967b5a122e1ca79df4f
selftests: netfilter: missing error check when setting up veth interface

A test for the basic NAT functionality uses ip command which needs veth
device. There is a condition where the kernel support for veth is not
compiled into the kernel and the test script breaks. This patch contains
code for reasonable error display and correct code exit.

Signed-off-by: Jeffrin Jose T <jeffrin@rajagiritech.edu.in>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tools/testing/selftests/netfilter/nft_nat.sh