New revisions created in hipl-dev@xxxxxxxxxxxxxxxxxxx/hipl--userspace--2.6 2005-12-21 GMT Miika Komu <miika@xxxxxx> patch-261 Summary: Added Kristian's IPv6 del addr patch. Revision: hipl--userspace--2.6--patch-261 Date: Wed, 21 Dec 2005 14:28:25 +0200 From: Kristian Slavov <kristian.slavov@xxxxxxxxxxxxxx> To: Kernel Netdev Mailing List <netdev@xxxxxxxxxxxxxxx> Subject: [PATCH] Fix IPv6 address deletion Hi, If you add more than one IPv6 address belonging to the same prefix and delete the address that was last added, routing table entry for that prefix is also deleted. Tested on 184.108.40.206 To reproduce: ip addr add 3ffe::1/64 dev eth0 ip addr add 3ffe::2/64 dev eth0 /* wait DAD */ sleep 1 ip addr del 3ffe::2/64 dev eth0 ip -6 route (route to 3ffe::/64 should be gone) In ipv6_del_addr(), if ifa == ifp, we set ifa->if_next to NULL, and later assign ifap = &ifa->if_next, effectively terminating the for-loop. This prevents us from checking if there are other addresses using the same prefix that are valid, and thus resulting in deletion of the prefix. This applies only if the first entry in idev->addr_list is the address to be deleted. Signed-off-by: Kristian Slavov <kristian.slavov@xxxxxxxxxxxxxx> new files: patches/kernel/.arch-ids/ipv6_addr_del.patch.220.127.116.11.slavov.id patches/kernel/ipv6_addr_del.patch.18.104.22.168.slavov regards, "tla mail-new-revisions"