[IPV6]: Add ip6_local_out
Most callers of the LOCAL_OUT chain will set the IP packet length before doing so. They also share the same output function dst_output. This patch creates a new function called ip6_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. Signed-off-by:Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/ipv6.h 3 additions, 0 deletionsinclude/net/ipv6.h
- net/ipv6/ip6_output.c 27 additions, 6 deletionsnet/ipv6/ip6_output.c
- net/ipv6/ip6_tunnel.c 1 addition, 3 deletionsnet/ipv6/ip6_tunnel.c
- net/ipv6/netfilter/ip6t_REJECT.c 1 addition, 3 deletionsnet/ipv6/netfilter/ip6t_REJECT.c
- net/ipv6/xfrm6_output.c 1 addition, 6 deletionsnet/ipv6/xfrm6_output.c
Loading
Please register or sign in to comment