]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Jun 2019 06:16:16 +0000 (08:16 +0200)
commitb22ab51a79bb7bc833d2997121547b06da667d93
treeb47efd22585bb7241534e768335176aad1f30a54
parent72634d7fd9659634c54a2b668ff80d5e9d02f7fc
selftests: netfilter: missing error check when setting up veth interface

[ Upstream commit 82ce6eb1dd13fd12e449b2ee2c2ec051e6f52c43 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/netfilter/nft_nat.sh