[NETFILTER]: Call POST_ROUTING hook before fragmentation
authorPatrick McHardy <kaber@trash.net>
Thu, 5 Jan 2006 20:20:59 +0000 (12:20 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jan 2006 20:20:59 +0000 (12:20 -0800)
commit1bd9bef6f9fe06dd0c628ac877c85b6b36aca062
tree60b4bfdd06efc0ab5cf297c470a273f470b7c1f5
parentabbcc73982445c1457901c7fc1d0d110e7a587e3
[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>
include/net/ip.h
net/ipv4/ip_output.c
net/ipv4/netfilter/ip_conntrack_standalone.c
net/ipv4/netfilter/ip_nat_standalone.c
net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c