Message ID | 1398197671-12786-6-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index d8ba7c5..35cc19f 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -1442,7 +1442,7 @@ int ip6_route_add(struct fib6_config *cfg) if (!table) goto out; - rt = ip6_dst_alloc(net, NULL, DST_NOCOUNT, table); + rt = ip6_dst_alloc(net, NULL, (cfg->fc_flags & RTF_ADDRCONF) ? 0 : DST_NOCOUNT, table); if (!rt) { err = -ENOMEM;