Skip to content

: Remove NET_ACT_NAT dependency on NETFILTER

Patrick McHardy netdev netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2: Move netfilter checksum helpers to net/core/utils.cinclude/linux/netfilter.h include/net/checksum.h net/core/utils.c +1 more+45 -370 replies
2/2: Convert old checksum helper namesinclude/linux/netfilter.h net/ipv4/netfilter/ipt_ECN.c net/ipv4/netfilter/ipt_TOS.c +9 more+40 -450 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [NET 00/02]: Remove NET_ACT_NAT dependency on NETFILTER

These patches remove the dependency of NET_ACT_NAT on NETFILTER by moving the netfilter checksum helpers to include/net/checksum and net/core/utils.c. I didn't find more appropriate locations, but I'd happily change it if someone suggests something better.

 include/linux/netfilter.h              |   22 ----------------------
 include/net/checksum.h                 |   25 +++++++++++++++++++++++++
 net/core/utils.c                       |   16 ++++++++++++++++
 net/ipv4/netfilter/ipt_ECN.c           |    6 +++---
 net/ipv4/netfilter/ipt_TOS.c           |    2 +-
 net/ipv4/netfilter/ipt_TTL.c           |    4 ++--
 net/ipv4/netfilter/nf_nat_core.c       |    4 ++--
 net/ipv4/netfilter/nf_nat_helper.c     |   20 ++++++++++----------
 net/ipv4/netfilter/nf_nat_proto_icmp.c |    4 ++--
 net/ipv4/netfilter/nf_nat_proto_tcp.c  |    4 ++--
 net/ipv4/netfilter/nf_nat_proto_udp.c  |    6 +++---
 net/netfilter/core.c                   |   16 ----------------
 net/netfilter/xt_TCPMSS.c              |   17 +++++++++--------
 net/sched/Kconfig                      |    1 -
 net/sched/act_nat.c                    |   12 ++++++------
 15 files changed, 81 insertions(+), 78 deletions(-)

Patrick McHardy (2):
[NET]: Move netfilter checksum helpers to net/core/utils.c [NETFILTER]: Convert old checksum helper names