]> git.ipfire.org Git - thirdparty/iptables.git/commit
arptables: Fix jumps into user-defined chains
authorPhil Sutter <phil@nwl.cc>
Thu, 2 Aug 2018 15:05:23 +0000 (17:05 +0200)
committerFlorian Westphal <fw@strlen.de>
Sat, 4 Aug 2018 21:19:25 +0000 (23:19 +0200)
commitd11b6b8c3cc459eeec6438e2ad35e8ab46b3527f
treea0c0848878f361c4d291e5f1f5077ba22bdf0422
parent3f279553a2908bfa3ad76211ee657c97e4103563
arptables: Fix jumps into user-defined chains

Trying to jump into a user-defined chain was not possible:

| arptables-nft -N foo
| arptables-nft -A INPUT -j foo
| (null) v1.8.0 (nf_tables):  RULE_APPEND failed (No such file or directory): rule in chain INPUT

Since nft_arp_add() already does the right thing if cs->target is NULL
and cs->jumpto contains a non-empty string, simply drop the block of
code trying to deal with the situation.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/xtables-arp.c