Skip to content

compat updates

Pablo Neira Ayuso netfilter-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4configure: rename --disable-xtables to --disable-nftablesconfigure.ac+1 -10 replies
2/4configure: conditional dependencies for nftables-compatconfigure.ac+37 -360 replies
3/4xtables-restore: remove dependency with libip4tciptables/xtables-restore.c+5 -10 replies
4/4xtables: add xtables-compat-multi for the nftables compatibility layeriptables/Makefile.am iptables/xtables-arp-standalone.c iptables/xtables-arp.c +5 more+123 -380 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4 iptables-nftables] compat updates

Hi,

This patchset contains three updates for the compatibility layer:

* Don't require libmnl and libnftnl if you choose to disable the compatibility layer via --disable-nftables.

* Provide a mechanism to distributors to switch to the compatibility layer in a transparent way (by updating the symlinks to the new binary xtables-compat-multi). Meanwhile, it installs {ip,ip6,arp}tables-compat-* utilities so you can use both native and compatibility layer tools.

* Add a emulated xtc_ops structure to avoid dependencies with libip4tc.

* A simple fix to replace a string that is wrong.

If no concerns, I'll push this to the nft-compat branch. After this, I'll merge this branch to master and will also prepare the first release of iptables including the nftables compatibility layer.

Pablo Neira Ayuso (4):
configure: rename --disable-xtables to --disable-nftables
configure: conditional dependencies for nftables-compat
xtables-restore: remove dependency with libip4tc
xtables: add xtables-compat-multi for the nftables compatibility layer

 configure.ac                      |   75 +++++++++++++++++++------------------
 iptables/Makefile.am              |   41 ++++++++++++--------
 iptables/xtables-arp-standalone.c |    2 +-
 iptables/xtables-arp.c            |    2 +-
 iptables/xtables-compat-multi.c   |   39 +++++++++++++++++++
 iptables/xtables-multi.h          |   13 +++++--
 iptables/xtables-restore.c        |   28 +++++++++++---
 iptables/xtables-save.c           |   18 +++++++--
 iptables/xtables-standalone.c     |   24 ++++++++----
 9 files changed, 166 insertions(+), 76 deletions(-)
 create mode 100644 iptables/xtables-compat-multi.c
Signature · 1 line
1.7.10.4