Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add replacedefaultroute option #200

Merged
merged 1 commit into from
Jan 2, 2021

Conversation

sthibaul
Copy link
Contributor

Adds an option to pppd to control whether to replace existing default routes
when using the 'defaultroute' option.

If defaultroute and replacedefaultroute are both set, pppd replaces an existing
default route with the new default route. The old default route is restored when
the connection is taken down.

Signed-off-by: Samuel Thibault [email protected]

@sthibaul sthibaul force-pushed the cifdefroute branch 2 times, most recently from 0b79bfa to be0c353 Compare December 31, 2020 13:00
Adds an option to pppd to control whether to replace existing default routes
when using the 'defaultroute' option.

If defaultroute and replacedefaultroute are both set, pppd replaces an existing
default route with the new default route. The old default route is restored when
the connection is taken down.

Signed-off-by: Samuel Thibault <[email protected]>
@sthibaul sthibaul requested a review from paulusmack January 1, 2021 13:49
@paulusmack paulusmack merged commit d0ccb87 into ppp-project:master Jan 2, 2021
sthibaul added a commit to sthibaul/ppp that referenced this pull request Jan 10, 2024
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.

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

Fixes ppp-project#357
sthibaul added a commit to sthibaul/ppp that referenced this pull request Jan 10, 2024
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.

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

Fixes ppp-project#357

Signed-off-by: Samuel Thibault <[email protected]>
paulusmack pushed a commit that referenced this pull request Feb 13, 2024
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.

d0ccb87 ("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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants