]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[IPV4]: Add ip_local_out
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 12 Jan 2008 03:14:00 +0000 (19:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:53:47 +0000 (14:53 -0800)
commitc439cb2e4b13cf1cb2abcd006b906315a3381323
tree7bb9d27214e010d37d6a715d0533a7148a8f429a
parent227620e295090629fcb2c46ad3828222ab65438d
[IPV4]: Add ip_local_out

Most callers of the LOCAL_OUT chain will set the IP packet length and
header checksum before doing so.  They also share the same output
function dst_output.

This patch creates a new function called ip_local_out which does all
of that and converts the appropriate users over to it.

Apart from removing duplicate code, it will also help in merging the
IPsec output path once the same thing is done for IPv6.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
include/net/ipip.h
net/ipv4/igmp.c
net/ipv4/ip_output.c
net/ipv4/ipvs/ip_vs_xmit.c
net/ipv4/netfilter/ipt_REJECT.c
net/ipv4/xfrm4_output.c