]> git.baikalelectronics.ru Git - kernel.git/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)
commit79af1de77cf8f1dbebb3b93d80c4ef0e0ebea92e
treeb1170691501d18748d1aa47c005e9042be803861
parent42802e2bdfb125b82fb95a02efd024963c564f8a
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