]> git.ipfire.org Git - thirdparty/iptables.git/commit
Add --compat option to *tables-nft and *-nft-restore commands
authorPhil Sutter <phil@nwl.cc>
Fri, 5 May 2023 18:04:41 +0000 (20:04 +0200)
committerPhil Sutter <phil@nwl.cc>
Fri, 11 Aug 2023 13:56:38 +0000 (15:56 +0200)
commit11c464ed015b52a28d90c63c69e10e5f7d4053d4
tree5c2d3bd5a627720284e609dd966ff94246847ac8
parentca709b5784c982de12d6eab361cfc9c900aec4c7
Add --compat option to *tables-nft and *-nft-restore commands

The flag sets nft_handle::compat boolean, indicating a compatible rule
implementation is wanted. Users expecting their created rules to be
fetched from kernel by an older version of *tables-nft may use this to
avoid potential compatibility issues.

Changes since v1:
- Expect short option '-C' in {ip,ip6,eb}tables-nft-restore command line
  parser
- Support -C/--compat in arptables-nft-restore, too
- Update man pages with the new flag

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/arptables-nft-restore.8
iptables/arptables-nft.8
iptables/ebtables-nft.8
iptables/iptables-restore.8.in
iptables/iptables.8.in
iptables/xshared.c
iptables/xshared.h
iptables/xtables-arp.c
iptables/xtables-eb.c
iptables/xtables-restore.c
iptables/xtables.c