Skip to content

netfilter: extensions: don't add nat by default

Florian Westphal netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3netfilter: masquerade: attach nat extension if not presentnet/ipv4/netfilter/nf_nat_masquerade_ipv4.c net/ipv6/netfilter/nf_nat_masquerade_ipv6.c+7 -30 replies
2/3netfilter: pptp: attach nat extension when needednet/ipv4/netfilter/nf_nat_pptp.c net/netfilter/nf_conntrack_pptp.c+31 -60 replies
3/3netfilter: don't attach a nat extension by defaultinclude/net/netfilter/nf_nat.h net/ipv4/netfilter/nf_nat_l3proto_ipv4.c net/ipv6/netfilter/nf_nat_l3proto_ipv6.c +1 more+3 -130 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH nf-next 0/3] netfilter: extensions: don't add nat by default

The nat extension only holds information needed by pptp and the masquerade target (and in the latter case its not essential), so no need to attach it by default.

First two patches add the nat extension in masquerade and pptp case, 3rd patch gets rid of the default-add.

This saves 8 bytes in the extension blob unless a connection is subject to MASQERUADE and/or pptp nat helper.