]> Pileus Git - ~andy/linux/commit
sit: link local routes are missing
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Thu, 14 Nov 2013 12:51:06 +0000 (13:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Nov 2013 21:59:16 +0000 (16:59 -0500)
commitf0e2acfa30920fc9b902734baba71e58f2fd844a
treeb1170691501d18748d1aa47c005e9042be803861
parent929c9cf310565a97ec9bc685abbfeaed5fceb557
sit: link local routes are missing

When a link local address was added to a sit interface, the corresponding route
was not configured. This breaks routing protocols that use the link local
address, like OSPFv3.

To ease the code reading, I remove sit_route_add(), which only adds v4 mapped
routes, and add this kind of route directly in sit_add_v4_addrs(). Thus link
local and v4 mapped routes are configured in the same place.

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