]> git.ipfire.org Git - thirdparty/iptables.git/commit
arptables: Warn when ignoring '-p' option master
authorPhil Sutter <phil@nwl.cc>
Thu, 2 Apr 2026 14:20:09 +0000 (16:20 +0200)
committerPhil Sutter <phil@nwl.cc>
Sat, 4 Apr 2026 09:37:56 +0000 (11:37 +0200)
commit264d7572c7fb31b015f2428ef2ade47318652efc
treec24841238042627d15dabbac2af13c357f3e0854
parent781a87c08be51bd874c196e1555073eb7a3cbc09
arptables: Warn when ignoring '-p' option

Legacy arptables has been silently ignoring this flag (plus mandatory
argument) since day 1. Retain compatibility to that behaviour but inform
users that a part of their rule does nothing.

Since arp is the only family which didn't provide a proto_parse
callback, implement one for the sole purpose of printing the warning. As
a side-effect, caller no longer has to check callback's existence.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/nft-arp.c
iptables/xshared.c