Skip to content

Commit 8f03151

Browse files
committed
ipv6: Make third arg to anycast_dst_alloc() bool.
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent f2fd5c3 commit 8f03151

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎include/net/ip6_route.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ extern void fib6_force_start_gc(struct net *net);
102102

103103
extern struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev,
104104
const struct in6_addr *addr,
105-
int anycast);
105+
bool anycast);
106106

107107
extern int ip6_dst_hoplimit(struct dst_entry *dst);
108108

‎net/ipv6/addrconf.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ ipv6_add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int pfxlen,
630630
goto out;
631631
}
632632

633-
rt = addrconf_dst_alloc(idev, addr, 0);
633+
rt = addrconf_dst_alloc(idev, addr, false);
634634
if (IS_ERR(rt)) {
635635
err = PTR_ERR(rt);
636636
goto out;

‎net/ipv6/anycast.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ int ipv6_dev_ac_inc(struct net_device *dev, const struct in6_addr *addr)
289289
goto out;
290290
}
291291

292-
rt = addrconf_dst_alloc(idev, addr, 1);
292+
rt = addrconf_dst_alloc(idev, addr, true);
293293
if (IS_ERR(rt)) {
294294
kfree(aca);
295295
err = PTR_ERR(rt);

‎net/ipv6/route.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,7 @@ static int ip6_pkt_prohibit_out(struct sk_buff *skb)
20562056

20572057
struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev,
20582058
const struct in6_addr *addr,
2059-
int anycast)
2059+
bool anycast)
20602060
{
20612061
struct net *net = dev_net(idev->dev);
20622062
struct rt6_info *rt = ip6_dst_alloc(&net->ipv6.ip6_dst_ops,

0 commit comments

Comments
 (0)