[NETFILTER]: Call POST_ROUTING hook before fragmentation
Call POST_ROUTING hook before fragmentation to get rid of the okfn use in ip_refrag and save the useless fragmentation/defragmentation step when NAT is used. The patch introduces one user-visible change, the POSTROUTING chain in the mangle table gets entire packets, not fragments, which should simplify use of the MARK and CLASSIFY targets for queueing as a nice side-effect. Signed-off-by:Patrick McHardy <kaber@trash.net> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/ip.h 0 additions, 1 deletioninclude/net/ip.h
- net/ipv4/ip_output.c 14 additions, 16 deletionsnet/ipv4/ip_output.c
- net/ipv4/netfilter/ip_conntrack_standalone.c 1 addition, 25 deletionsnet/ipv4/netfilter/ip_conntrack_standalone.c
- net/ipv4/netfilter/ip_nat_standalone.c 0 additions, 17 deletionsnet/ipv4/netfilter/ip_nat_standalone.c
- net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c 1 addition, 25 deletionsnet/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
Please register or sign in to comment