]> git.ozlabs.org Git - ppp.git/commit
pppd: Restore adding a default route with different metric (#472)
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 13 Feb 2024 09:36:08 +0000 (10:36 +0100)
committerGitHub <noreply@github.com>
Tue, 13 Feb 2024 09:36:08 +0000 (20:36 +1100)
commit4693ad374378bd26512f328d174ea764b139bc2a
tree44e278b42802808545d7e99e5503c5857927cb5a
parent88563e591766a0cac99c171124d9dd5df2922f4c
pppd: Restore adding a default route with different metric (#472)

For instance, when using a ppp link as backup link, one would want to
add a default route on the ppp link, in *addition* to the existing
default route.

d0ccb87156c2 ("pppd: Add replacedefaultroute option (#200)") however broke
this case: sifdefaultroute was not passing the metric to
defaultroute_exists any more. This commit restores this case.

Fixes #357

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
pppd/sys-linux.c