16 Sep
2016
16 Sep
'16
1:07 p.m.
❦ 16 septembre 2016 11:33 CEST, Ondrej Zajicek <santiago@crfreenet.org> :
For device routes created by the kernel, scope is link, but if you create them manually, you get a global scope.
My point was that 'ip' tool does that automatically for users:
# ip r a 10.1.1.0/24 dev eth0 # ip r l 10.1.1.0/24 dev eth0 scope link
Perhaps we should do that too. The fact that we do not set link scope for device routes sent to kernel is probably an oversight, not by design.
Here is an attached patch, which does that. Does it work for you?
Yes, works just fine for me! -- April 1 This is the day upon which we are reminded of what we are on the other three hundred and sixty-four. -- Mark Twain, "Pudd'nhead Wilson's Calendar"