Skip to content

NF NAT deduplication refactoring

Jeremy Sowden netfilter-devel 3 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/20 of 2 patches 0 repliesNew
  2. v2 posting 1/22 patches 0 repliesSuperseded
  3. v13 patches 2 repliesSuperseded

Changes in v2 from the cover letter

* The two redirect patches in v1 have been merged.
* The new struct nf_nat_range2 instance in nf_nat_redirect.c is memset to zero.
* The two union nf_inet_addr instances in nf_nat_redirect.c are zero-initialized.
* The WARN_ON call in nf_nat_redirect.c has been removed.

Patches in v2 posting 2/2 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH nf-next v2 0/2] NF NAT deduplication refactoring

These two patches perform refactoring in NF NAT modules to remove duplicate code.

Changes since v1.

* The two redirect patches in v1 have been merged.
* The new struct nf_nat_range2 instance in nf_nat_redirect.c is memset to zero.
* The two union nf_inet_addr instances in nf_nat_redirect.c are zero-initialized.
* The WARN_ON call in nf_nat_redirect.c has been removed.

Jeremy Sowden (2):
netfilter: nft_redir: use struct nf_nat_range2 throughout and
deduplicate eval call-backs
netfilter: nft_masq: deduplicate eval call-backs

 include/net/netfilter/nf_nat_redirect.h |  3 +-
 net/netfilter/nf_nat_redirect.c         | 71 ++++++++++-----------
 net/netfilter/nft_masq.c                | 75 +++++++++-------------
 net/netfilter/nft_redir.c               | 84 +++++++++----------------
 net/netfilter/xt_REDIRECT.c             | 10 ++-
 5 files changed, 101 insertions(+), 142 deletions(-)
Signature · 1 line
2.39.2