Skip to content

: Netfilter IPsec support

Patrick McHardy netdev netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10: Netfilter IPsec output hooksinclude/linux/netfilter.h include/net/dst.h net/ipv4/xfrm4_output.c +1 more+152 -740 replies
2/10: Move nextheader offset to the IP6CBinclude/linux/ipv6.h include/net/protocol.h include/net/xfrm.h +11 more+42 -460 replies
3/10: Netfilter IPsec input hooksinclude/net/ipv6.h net/ipv4/xfrm4_input.c net/ipv6/ip6_input.c +1 more+47 -10 replies
4/10: reset IPCB flags when neccessaryinclude/net/ip.h net/ipv4/ip_gre.c net/ipv4/ipip.c +1 more+7 -50 replies
5/10: Fix xfrm lookup in ip_route_me_harder/ip6_route_me_harderinclude/linux/ipv6.h include/linux/skbuff.h include/net/ip.h +8 more+34 -120 replies
6/10: Use conntrack information to determine if packet was NATednet/ipv4/netfilter/ip_nat_standalone.c+19 -150 replies
7/10: Redo policy lookups after NAT when neccessaryinclude/net/xfrm.h net/ipv4/ip_output.c net/ipv4/netfilter/ip_nat_standalone.c +1 more+32 -30 replies
8/10: Keep conntrack reference until IPsec policy checks are donenet/dccp/ipv4.c net/ipv4/ip_input.c net/ipv4/raw.c +3 more+12 -90 replies
9/10: Handle NAT in IPsec policy checksinclude/linux/netfilter.h net/dccp/ipv4.c net/ipv4/netfilter.c +2 more+70 -30 replies
10/10: Add ipt_policy/ip6t_policy matchesinclude/linux/netfilter_ipv4/ipt_policy.h include/linux/netfilter_ipv6/ip6t_policy.h net/ipv4/netfilter/Kconfig +5 more+471 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [NETFILTER 00/10]: Netfilter IPsec support

Hi Dave,

following are the remaining patches for netfilter IPsec support. They are missing the common-case optimization for inner transport mode SAs on the input path, but since its just an optimization, I think it can also be done later. One note: unfortunately I had to increase skb->cb to make room for two new fields in the IP6CB. Yoshifuji mentioned he needs more room for mobile IPv6 extensions anyway, so hopefully this will leave enough room for both. One idea to save some space again would be to introduce a struct that is a subset of inet6_skb_parm and only holds the fields needed after the packet is passed to the upper protocol and use that struct in tcp_skb_cb.