Re: [net-next] ipv6: Enable netlink notification for tentative addresses.
From: Ben Greear <hidden>
Date: 2010-08-26 21:22:34
From: Ben Greear <hidden>
Date: 2010-08-26 21:22:34
On 08/26/2010 12:57 PM, Brian Haley wrote:
On 08/26/2010 02:50 PM, Ben Greear wrote:
quoted
@@ -697,9 +698,10 @@ ipv6_add_addr(struct inet6_dev *idev, const structin6_addr *addr, int pfxlen, out2: rcu_read_unlock_bh(); - if (likely(err == 0)) + if (likely(err == 0)) { atomic_notifier_call_chain(&inet6addr_chain, NETDEV_UP, ifa); - else { + inet6_ifa_notify(RTM_NEWADDR, ifa); + } else { kfree(ifa); ifa = ERR_PTR(err); }This will generate two messages in some cases, for example, when lo is configured, or a SIT tunnel is added, see add_addr() in addrconf.c.
Would that cause any problem though? It seems a common pattern to send 'new-foo' netlink messages when some value in foo changes. Thanks, Ben -- Ben Greear [off-list ref] Candela Technologies Inc http://www.candelatech.com