[IPV6]: Replace dst_output by ip6_dst_output Preparation for netfilter IPsec support.
Signed-off-by: Patrick McHardy <[EMAIL PROTECTED]> --- commit 73f59ffcebcd0a08f6a405c8522074e8b5892b73 tree 4be1e3bb174f611fa57ee6e1b8d9187e784c85ad parent 4eb320a6444a9035da8a83e4886b3691a2ea98f7 author Patrick McHardy <[EMAIL PROTECTED]> Sat, 19 Nov 2005 21:49:40 +0100 committer Patrick McHardy <[EMAIL PROTECTED]> Sat, 19 Nov 2005 21:49:40 +0100 include/net/dst.h | 1 + net/ipv6/ip6_input.c | 4 ++-- net/ipv6/ip6_output.c | 7 ++++--- net/ipv6/ip6_tunnel.c | 2 +- net/ipv6/ndisc.c | 8 ++++---- net/ipv6/netfilter/ip6t_REJECT.c | 2 +- net/ipv6/raw.c | 2 +- 7 files changed, 14 insertions(+), 12 deletions(-) diff --git a/include/net/dst.h b/include/net/dst.h index 07f552b..4886f25 100644 --- a/include/net/dst.h +++ b/include/net/dst.h @@ -237,6 +237,7 @@ static inline int dst_output(struct sk_b } #define ip_dst_output dst_output +#define ip6_dst_output dst_output /* Input packet from network to transport. */ static inline int dst_input(struct sk_buff *skb) diff --git a/net/ipv6/ip6_input.c b/net/ipv6/ip6_input.c index a6026d2..33d3b0e 100644 --- a/net/ipv6/ip6_input.c +++ b/net/ipv6/ip6_input.c @@ -255,9 +255,9 @@ int ip6_mc_input(struct sk_buff *skb) if (deliver) { skb2 = skb_clone(skb, GFP_ATOMIC); - dst_output(skb2); + ip6_dst_output(skb2); } else { - dst_output(skb); + ip6_dst_output(skb); return 0; } } diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index c1fa693..c270798 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c @@ -230,7 +230,7 @@ int ip6_xmit(struct sock *sk, struct sk_ if ((skb->len <= mtu) || ipfragok) { IP6_INC_STATS(IPSTATS_MIB_OUTREQUESTS); return NF_HOOK(PF_INET6, NF_IP6_LOCAL_OUT, skb, NULL, dst->dev, - dst_output); + ip6_dst_output); } if (net_ratelimit()) @@ -308,7 +308,7 @@ static int ip6_call_ra_chain(struct sk_b static inline int ip6_forward_finish(struct sk_buff *skb) { - return dst_output(skb); + return ip6_dst_output(skb); } int ip6_forward(struct sk_buff *skb) @@ -1181,7 +1181,8 @@ int ip6_push_pending_frames(struct sock skb->dst = dst_clone(&rt->u.dst); IP6_INC_STATS(IPSTATS_MIB_OUTREQUESTS); - err = NF_HOOK(PF_INET6, NF_IP6_LOCAL_OUT, skb, NULL, skb->dst->dev, dst_output); + err = NF_HOOK(PF_INET6, NF_IP6_LOCAL_OUT, skb, NULL, skb->dst->dev, + ip6_dst_output); if (err) { if (err > 0) err = np->recverr ? net_xmit_errno(err) : 0; diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c index e315d0f..7c01eaf 100644 --- a/net/ipv6/ip6_tunnel.c +++ b/net/ipv6/ip6_tunnel.c @@ -746,7 +746,7 @@ ip6ip6_tnl_xmit(struct sk_buff *skb, str nf_reset(skb); pkt_len = skb->len; err = NF_HOOK(PF_INET6, NF_IP6_LOCAL_OUT, skb, NULL, - skb->dst->dev, dst_output); + skb->dst->dev, ip6_dst_output); if (err == NET_XMIT_SUCCESS || err == NET_XMIT_CN) { stats->tx_bytes += pkt_len; diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index 305d9ee..287170f 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c @@ -499,7 +499,7 @@ static void ndisc_send_na(struct net_dev skb->dst = dst; idev = in6_dev_get(dst->dev); IP6_INC_STATS(IPSTATS_MIB_OUTREQUESTS); - err = NF_HOOK(PF_INET6, NF_IP6_LOCAL_OUT, skb, NULL, dst->dev, dst_output); + err = NF_HOOK(PF_INET6, NF_IP6_LOCAL_OUT, skb, NULL, dst->dev, ip6_dst_output); if (!err) { ICMP6_INC_STATS(idev, ICMP6_MIB_OUTNEIGHBORADVERTISEMENTS); ICMP6_INC_STATS(idev, ICMP6_MIB_OUTMSGS); @@ -582,7 +582,7 @@ void ndisc_send_ns(struct net_device *de skb->dst = dst; idev = in6_dev_get(dst->dev); IP6_INC_STATS(IPSTATS_MIB_OUTREQUESTS); - err = NF_HOOK(PF_INET6, NF_IP6_LOCAL_OUT, skb, NULL, dst->dev, dst_output); + err = NF_HOOK(PF_INET6, NF_IP6_LOCAL_OUT, skb, NULL, dst->dev, ip6_dst_output); if (!err) { ICMP6_INC_STATS(idev, ICMP6_MIB_OUTNEIGHBORSOLICITS); ICMP6_INC_STATS(idev, ICMP6_MIB_OUTMSGS); @@ -654,7 +654,7 @@ void ndisc_send_rs(struct net_device *de skb->dst = dst; idev = in6_dev_get(dst->dev); IP6_INC_STATS(IPSTATS_MIB_OUTREQUESTS); - err = NF_HOOK(PF_INET6, NF_IP6_LOCAL_OUT, skb, NULL, dst->dev, dst_output); + err = NF_HOOK(PF_INET6, NF_IP6_LOCAL_OUT, skb, NULL, dst->dev, ip6_dst_output); if (!err) { ICMP6_INC_STATS(idev, ICMP6_MIB_OUTROUTERSOLICITS); ICMP6_INC_STATS(idev, ICMP6_MIB_OUTMSGS); @@ -1438,7 +1438,7 @@ void ndisc_send_redirect(struct sk_buff buff->dst = dst; idev = in6_dev_get(dst->dev); IP6_INC_STATS(IPSTATS_MIB_OUTREQUESTS); - err = NF_HOOK(PF_INET6, NF_IP6_LOCAL_OUT, buff, NULL, dst->dev, dst_output); + err = NF_HOOK(PF_INET6, NF_IP6_LOCAL_OUT, buff, NULL, dst->dev, ip6_dst_output); if (!err) { ICMP6_INC_STATS(idev, ICMP6_MIB_OUTREDIRECTS); ICMP6_INC_STATS(idev, ICMP6_MIB_OUTMSGS); diff --git a/net/ipv6/netfilter/ip6t_REJECT.c b/net/ipv6/netfilter/ip6t_REJECT.c index b03e87a..8579eaa 100644 --- a/net/ipv6/netfilter/ip6t_REJECT.c +++ b/net/ipv6/netfilter/ip6t_REJECT.c @@ -161,7 +161,7 @@ static void send_reset(struct sk_buff *o sizeof(struct tcphdr), 0)); NF_HOOK(PF_INET6, NF_IP6_LOCAL_OUT, nskb, NULL, nskb->dst->dev, - dst_output); + ip6_dst_output); } static inline void diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index 8e9628f..e7fd031 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c @@ -571,7 +571,7 @@ static int rawv6_send_hdrinc(struct sock IP6_INC_STATS(IPSTATS_MIB_OUTREQUESTS); err = NF_HOOK(PF_INET6, NF_IP6_LOCAL_OUT, skb, NULL, rt->u.dst.dev, - dst_output); + ip6_dst_output); if (err > 0) err = np->recverr ? net_xmit_errno(err) : 0; if (err) - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html