ipv6: provide addr and netconf dump consistency info
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Fri, 22 Mar 2013 06:28:43 +0000 (06:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Mar 2013 21:16:29 +0000 (17:16 -0400)
commit63998ac24f8370caf99e433483532bab8368eb7e
tree6128d2e8e783079c404f2f7c5c64616c7db1b507
parent0465277f6b3fd0535428ae935644ac30ce903de0
ipv6: provide addr and netconf dump consistency info

This patch adds a dev_addr_genid for IPv6. The goal is to use it, combined with
dev_base_seq to check if a change occurs during a netlink dump.
If a change is detected, the flag NLM_F_DUMP_INTR is set in the first message
after the dump was interrupted.

Note that only dump of unicast addresses is checked (multicast and anycast are
not checked).

Reported-by: Junwei Zhang <junwei.zhang@6wind.com>
Reported-by: Hongjun Li <hongjun.li@6wind.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netns/ipv6.h
net/ipv6/addrconf.c