Skip to content

netfilter: conntrack: make l4 tracker structs const

Florian Westphal netfilter-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v14 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3netfilter: conntrack: remove nlattr_size pointer from l4proto trackersinclude/net/netfilter/nf_conntrack_l4proto.h net/netfilter/nf_conntrack_netlink.c net/netfilter/nf_conntrack_proto.c +3 more+28 -350 replies
2/3netfilter: conntrack: constify list of builtin trackersinclude/net/netfilter/nf_conntrack_l4proto.h net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c +1 more+13 -130 replies
3/3netfilter: conntrack: l4 protocol trackers can be constinclude/net/netfilter/ipv4/nf_conntrack_ipv4.h include/net/netfilter/ipv6/nf_conntrack_ipv6.h include/net/netfilter/nf_conntrack_l4proto.h +8 more+27 -270 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 nf-next 0/3] netfilter: conntrack: make l4 tracker structs const

This patch set removes the last runtime write accesses to the l4 protocol tracker structs, then marks them as 'const'.

Resending, seems only first patchi (not resent) made it to list/patchwork.

 include/net/netfilter/ipv4/nf_conntrack_ipv4.h |   12 ++++++------
 include/net/netfilter/ipv6/nf_conntrack_ipv6.h |   12 ++++++------
 include/net/netfilter/nf_conntrack_l4proto.h   |   19 +++++++++----------
 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c |    2 +-
 net/ipv4/netfilter/nf_conntrack_proto_icmp.c   |    2 +-
 net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c |    2 +-
 net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c |    2 +-
 net/netfilter/nf_conntrack_netlink.c           |    2 +-
 net/netfilter/nf_conntrack_proto.c             |   18 +++++++-----------
 net/netfilter/nf_conntrack_proto_dccp.c        |   21 ++++++++++-----------
 net/netfilter/nf_conntrack_proto_generic.c     |    2 +-
 net/netfilter/nf_conntrack_proto_gre.c         |    2 +-
 net/netfilter/nf_conntrack_proto_sctp.c        |   19 +++++++++----------
 net/netfilter/nf_conntrack_proto_tcp.c         |   20 ++++++++++----------
 net/netfilter/nf_conntrack_proto_udp.c         |    8 ++++----
 15 files changed, 68 insertions(+), 75 deletions(-)