]> git.proxmox.com Git - mirror_frr.git/commit
zebra: use link scope for interface routes
authorTimo Teräs <timo.teras@iki.fi>
Fri, 15 Jan 2016 15:36:30 +0000 (17:36 +0200)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 23 Sep 2016 13:51:56 +0000 (09:51 -0400)
commit72f3a8fb09433ee1e4d079522cd70999bb3b8e79
tree08defc193d9f6429a87a085ca878b25bd4bf700b
parent85eda2c98520a9553bdc05c136618f9d04917e9b
zebra: use link scope for interface routes

In linux, 'scope' is a hint of distance of the IP. And this is
evident from the fact that only lower scope can be used as recursive
via lookup result. This changes all interface routes scope to link
so kernel will allow regular routes to use it as via. Then we do
not need to use the 'onlink' attribute.

Signed-off-by: Timo Teräs <timo.teras@iki.fi>
zebra/rt_netlink.c
zebra/zebra_rib.c