Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311628
b: refs/heads/master
c: c24584c
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and Pablo Neira Ayuso committed Jun 25, 2012
1 parent 4b4a258 commit ac8b4db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ef5b6e127761667f78d99b7510a3876077fe9abe
refs/heads/master: c24584c028a62900ea6b541b312030f0feac93b8
14 changes: 7 additions & 7 deletions trunk/net/netfilter/ipvs/ip_vs_ctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,19 @@ static void __ip_vs_del_service(struct ip_vs_service *svc);

#ifdef CONFIG_IP_VS_IPV6
/* Taken from rt6_fill_node() in net/ipv6/route.c, is there a better way? */
static int __ip_vs_addr_is_local_v6(struct net *net,
const struct in6_addr *addr)
static bool __ip_vs_addr_is_local_v6(struct net *net,
const struct in6_addr *addr)
{
struct rt6_info *rt;
struct flowi6 fl6 = {
.daddr = *addr,
};
struct dst_entry *dst = ip6_route_output(net, NULL, &fl6);
bool is_local;

rt = (struct rt6_info *)ip6_route_output(net, NULL, &fl6);
if (rt && rt->dst.dev && (rt->dst.dev->flags & IFF_LOOPBACK))
return 1;
is_local = !dst->error && dst->dev && (dst->dev->flags & IFF_LOOPBACK);

return 0;
dst_release(dst);
return is_local;
}
#endif

Expand Down

0 comments on commit ac8b4db

Please sign in to comment.