ipv6: Make third arg to anycast_dst_alloc() bool.
authorDavid S. Miller <davem@davemloft.net>
Tue, 6 Dec 2011 21:48:14 +0000 (16:48 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Dec 2011 21:48:14 +0000 (16:48 -0500)
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_route.h
net/ipv6/addrconf.c
net/ipv6/anycast.c
net/ipv6/route.c

index 5e91b72fc7183092bbba1ba367206b2cff1cf2b1..f9dbf472bf58a86d829e3d9c4e1257e5fb7e5d1d 100644 (file)
@@ -102,7 +102,7 @@ extern void fib6_force_start_gc(struct net *net);
 
 extern struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev,
                                           const struct in6_addr *addr,
-                                          int anycast);
+                                          bool anycast);
 
 extern int                     ip6_dst_hoplimit(struct dst_entry *dst);
 
index 058cc222b3f184b89cf0866ee7ca3c8a4aa61066..94f3fd91a1a6aecc2bb6261fb57c6b7a6feb9ee3 100644 (file)
@@ -630,7 +630,7 @@ ipv6_add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int pfxlen,
                goto out;
        }
 
-       rt = addrconf_dst_alloc(idev, addr, 0);
+       rt = addrconf_dst_alloc(idev, addr, false);
        if (IS_ERR(rt)) {
                err = PTR_ERR(rt);
                goto out;
index fc1cdcd7041a85db005294f58fcf7fa4c18419c0..cc540f9ad130edc2237c05bb53e2d353a2f0bac2 100644 (file)
@@ -289,7 +289,7 @@ int ipv6_dev_ac_inc(struct net_device *dev, const struct in6_addr *addr)
                goto out;
        }
 
-       rt = addrconf_dst_alloc(idev, addr, 1);
+       rt = addrconf_dst_alloc(idev, addr, true);
        if (IS_ERR(rt)) {
                kfree(aca);
                err = PTR_ERR(rt);
index 09412baf1ca62cedb8735b8c27892bc8407dc619..f0b582b26209afe06624c192344c2a1b6c461734 100644 (file)
@@ -2056,7 +2056,7 @@ static int ip6_pkt_prohibit_out(struct sk_buff *skb)
 
 struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev,
                                    const struct in6_addr *addr,
-                                   int anycast)
+                                   bool anycast)
 {
        struct net *net = dev_net(idev->dev);
        struct rt6_info *rt = ip6_dst_alloc(&net->ipv6.ip6_dst_ops,