[Babel-users] [PATCH] Always specify linux route metric to defaults

Dave Taht dave.taht at gmail.com
Fri Mar 9 04:07:01 UTC 2018


I updated both an aarch64 and an x86_64 box to git head today. No issues.

...

Attached is part one of trying to get atomic updates to work, which is
a change to how metrics are passed into the kernel. I don't know if
this change is worth
it by itself, nor do I understand why -1 was used in the first place.

The original code would export -1 into the linux kernel routing table
for unreachable routes, in addition to setting RTN_UNREACHABLE.

RTN_UNREACHABLE is all you need (at least, on modern kernels), and
changing the metric to -1 makes it impossible to do atomic
updates. Also it has a theoretical flaw in that other similar routes
with smaller metrics, inserted by other protocols, can override the
now unreachable route. Using the defaults leads to more consistent
behavior.

This uses the defaults of 0 and 1024 for ipv4 and ipv6 route metrics
respectively.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Always-specify-linux-route-metric-to-defaults.patch
Type: text/x-patch
Size: 1986 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/babel-users/attachments/20180308/2411c971/attachment.bin>


More information about the Babel-users mailing list