aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/mcast.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-03-12 16:22:43 -0500
committerDavid S. Miller <davem@davemloft.net>2011-03-12 18:08:54 -0500
commit4c9483b2fb5d2548c3cc1fe03cdd4484ceeb5d1c (patch)
treec29c8070012cffb38fe249cf528589a675f622b1 /net/ipv6/mcast.c
parent9cce96df5b76691712dba22e83ff5efe900361e1 (diff)
ipv6: Convert to use flowi6 where applicable.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/mcast.c')
-rw-r--r--net/ipv6/mcast.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c
index f2c9b6930ffc..76b893771e6e 100644
--- a/net/ipv6/mcast.c
+++ b/net/ipv6/mcast.c
@@ -1396,7 +1396,7 @@ static void mld_sendpack(struct sk_buff *skb)
1396 struct inet6_dev *idev; 1396 struct inet6_dev *idev;
1397 struct net *net = dev_net(skb->dev); 1397 struct net *net = dev_net(skb->dev);
1398 int err; 1398 int err;
1399 struct flowi fl; 1399 struct flowi6 fl6;
1400 struct dst_entry *dst; 1400 struct dst_entry *dst;
1401 1401
1402 rcu_read_lock(); 1402 rcu_read_lock();
@@ -1419,11 +1419,11 @@ static void mld_sendpack(struct sk_buff *skb)
1419 goto err_out; 1419 goto err_out;
1420 } 1420 }
1421 1421
1422 icmpv6_flow_init(net->ipv6.igmp_sk, &fl, ICMPV6_MLD2_REPORT, 1422 icmpv6_flow_init(net->ipv6.igmp_sk, &fl6, ICMPV6_MLD2_REPORT,
1423 &ipv6_hdr(skb)->saddr, &ipv6_hdr(skb)->daddr, 1423 &ipv6_hdr(skb)->saddr, &ipv6_hdr(skb)->daddr,
1424 skb->dev->ifindex); 1424 skb->dev->ifindex);
1425 1425
1426 dst = xfrm_lookup(net, dst, &fl, NULL, 0); 1426 dst = xfrm_lookup(net, dst, flowi6_to_flowi(&fl6), NULL, 0);
1427 err = 0; 1427 err = 0;
1428 if (IS_ERR(dst)) { 1428 if (IS_ERR(dst)) {
1429 err = PTR_ERR(dst); 1429 err = PTR_ERR(dst);
@@ -1731,7 +1731,7 @@ static void igmp6_send(struct in6_addr *addr, struct net_device *dev, int type)
1731 u8 ra[8] = { IPPROTO_ICMPV6, 0, 1731 u8 ra[8] = { IPPROTO_ICMPV6, 0,
1732 IPV6_TLV_ROUTERALERT, 2, 0, 0, 1732 IPV6_TLV_ROUTERALERT, 2, 0, 0,
1733 IPV6_TLV_PADN, 0 }; 1733 IPV6_TLV_PADN, 0 };
1734 struct flowi fl; 1734 struct flowi6 fl6;
1735 struct dst_entry *dst; 1735 struct dst_entry *dst;
1736 1736
1737 if (type == ICMPV6_MGM_REDUCTION) 1737 if (type == ICMPV6_MGM_REDUCTION)
@@ -1791,11 +1791,11 @@ static void igmp6_send(struct in6_addr *addr, struct net_device *dev, int type)
1791 goto err_out; 1791 goto err_out;
1792 } 1792 }
1793 1793
1794 icmpv6_flow_init(sk, &fl, type, 1794 icmpv6_flow_init(sk, &fl6, type,
1795 &ipv6_hdr(skb)->saddr, &ipv6_hdr(skb)->daddr, 1795 &ipv6_hdr(skb)->saddr, &ipv6_hdr(skb)->daddr,
1796 skb->dev->ifindex); 1796 skb->dev->ifindex);
1797 1797
1798 dst = xfrm_lookup(net, dst, &fl, NULL, 0); 1798 dst = xfrm_lookup(net, dst, flowi6_to_flowi(&fl6), NULL, 0);
1799 if (IS_ERR(dst)) { 1799 if (IS_ERR(dst)) {
1800 err = PTR_ERR(dst); 1800 err = PTR_ERR(dst);
1801 goto err_out; 1801 goto err_out;