diff options
author | Phil Sutter <phil@nwl.cc> | 2023-11-22 03:58:18 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2023-11-23 17:59:42 +0100 |
commit | c0bd98c9339b4975c9d52739d638a3c2bdf9a7ff (patch) | |
tree | 7dbef2d9c382f7a56ef3709c490f34dac25130dd /iptables/xshared.c | |
parent | 74253799f0ca0735256327e834b7dffedde96ebf (diff) |
xshared: do_parse: Ignore '-j CONTINUE'
While iptables does not support his NOP, arptables man page claims it
does (although legacy arptables rejects it) and ebtables prefers to
print it instead of omitting the '-j' option.
Accept and ignore the target when parsing to at least fix for
arptables-nft and prepare for ebtables-nft using do_parse() as well.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/xshared.c')
-rw-r--r-- | iptables/xshared.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/iptables/xshared.c b/iptables/xshared.c index c4d7a266..1b02f35a 100644 --- a/iptables/xshared.c +++ b/iptables/xshared.c @@ -1634,7 +1634,8 @@ void do_parse(int argc, char *argv[], case 'j': set_option(&cs->options, OPT_JUMP, &args->invflags, invert); - command_jump(cs, optarg); + if (strcmp(optarg, "CONTINUE")) + command_jump(cs, optarg); break; case 'i': |