]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit238d9c0fbf40a1cb67e2bdbae568c0833e135b39
tree60b4bfdd06efc0ab5cf297c470a273f470b7c1f5
parent412d4e66695319040fb58dca700eaf85e29c8d56
[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