]> git.ozlabs.org Git - ppp.git/commit
When adding a default route, make the route static. Since this is a ``manually
authorChristos Zoulas <christos@zoulas.com>
Wed, 2 Sep 1998 20:58:13 +0000 (20:58 +0000)
committerChristos Zoulas <christos@zoulas.com>
Wed, 2 Sep 1998 20:58:13 +0000 (20:58 +0000)
commit2d429b67dec287282cad25de7f04fd251be86c3a
tree0fda697fcaf6fa6ade9ebc636a1875691a579456
parent492bed62999458a3e61f9d46b929ce1e1ca8a72b
When adding a default route, make the route static. Since this is a ``manually
added route'', this arguably follows the network programming guidelines.
This is necessary, otherwise it is impossible to make the default route
stick in the presense of routed(8). There is a small fix that needs to
be applied to routed(8) in if.c (iflookup) where we always want to look
for interfaces *once* instead of waiting for the timeout period. This avoids
the race where routed finds the route added by pppd before it finds that the
ppp inteface is now active. With those two fixes, pppd can happily coexist
with routed.
pppd/sys-bsd.c