Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 227321 - Add replacedefaultroute option in ppp
Summary: Add replacedefaultroute option in ppp
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-15 21:19 UTC by Ludovic Gasc (GMLudo)
Modified: 2008-06-16 08:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
the patch from SUSE (ppp-2.4.2-cifdefroute.diff,10.23 KB, patch)
2008-06-15 21:20 UTC, Ludovic Gasc (GMLudo)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ludovic Gasc (GMLudo) 2008-06-15 21:19:28 UTC
The SUSE mainteners made a patch ppp-2.4.2-cifdefroute.diff (cf. attachment) to add "replacedefaultroute" option.
Information from suse man page:
replacedefaultroute
This option is a flag to the defaultroute option. If defaultroute is
set and this flag is also set, pppd replaces an existing default route
with the new default route.

I have tried to adapt the patch with the actual version of ppp inside Gentoo, but my knowledge of PPP is too bad for this, my ebuild doesn't work.

The source package: ftp://ftp.free.fr/mirrors/ftp.opensuse.org/opensuse/distribution/10.3/repo/src-oss/suse/src/ppp-2.4.4-70.src.rpm

Reproducible: Always




This option is useful with a laptop always online with ppp+bluetooth+gprs and local network.
Comment 1 Ludovic Gasc (GMLudo) 2008-06-15 21:20:29 UTC
Created attachment 156993 [details, diff]
the patch from SUSE
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2008-06-15 21:25:32 UTC
This should really go through upstream...
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2008-06-15 22:12:30 UTC
This replacedefaultroute is really a misfeature from my POV because you will be left without a default route when pppd will be killed by the user with kill -9 (possibly with other signals as well, I didn't looked at their patch). We (or at least I) like a different approach to this problem. Instead of blindly replacing the default route, I let users choose the metric of the default route created by pppd (see defaultmetric option in pppd man page). This way you could adapt your setup to whatever needs you have, all you need to do is set the right metric on the right route.

Anyway, did you looked at the current pppd version in our tree? Do you really expect us to add such an old  (and probably rejected by upstream) patch to our source tree? :)
Closed as INVALID.
Comment 4 Ludovic Gasc (GMLudo) 2008-06-16 08:50:22 UTC
Okay, thanks you very much for this information.

I'm not a PPP developer, I only want a solution for my problem.
I had found only this patch to resolve this.

Your solution is okay for me.