Commit Graph

197 Commits (7a2e03f5e33f0ee3acf0d61530437a86890a52d9)

Author SHA1 Message Date
Felix Fietkau 6959928314 ppp: move ppp-{up,down} from the netifd package to pppd
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31340 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-04-17 21:35:13 +00:00
Felix Fietkau f33b5960c7 pppd: split files into netifd and non-netifd files, move the netifd ppp.sh file to the pppd package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31041 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-20 13:09:27 +00:00
Nicolas Thill 356170f1f7 package/ppp: fix typo in r28868 (closes: #10429)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29165 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-15 23:40:39 +00:00
Nicolas Thill 6180fc1f5a package/ppp: use new service wrappers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28868 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-08 22:48:05 +00:00
Felix Fietkau a1172f3c5d pppd: fix the exit code in case of authentication failure or other errors
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28498 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-21 01:34:12 +00:00
Felix Fietkau 4e958797f6 pppd: add a patch for overriding the path to /etc/ppp/ipv6-{up,down}
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28497 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-20 21:42:07 +00:00
Jo-Philipp Wich 7bb2a3145a [package] ppp: move the rp_pppoe_* options behind the plugin argument
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28368 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-04 23:41:12 +00:00
Jo-Philipp Wich f8ac2d14d3 [package] ppp: implement pppoe specific uci options "ac" and "service" which map to "rp_pppoe_ac" and "rp_pppoe_service"
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28366 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-04 23:37:53 +00:00
Jo-Philipp Wich c5a1b9374c [package] ppp: add workaround for ignored rp_pppoe_ac and rp_pppoe_service options by appending the nic-xxx argument last
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28364 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-04 23:10:36 +00:00
Felix Fietkau 3649909c09 ppp: remove zero-length patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27819 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-28 17:34:44 +00:00
Felix Fietkau 56add8a1e4 ppp: version bump to 2.4.5
Bump to the current version of PPP.

A few of the patches are either in 2.4.5 or something functionally equivalent is, so those patches were removed.

1 patch was added to accommodate pppol2pv3_addr which is referenced in a linux kernel header file, but isn't defined in the kernel header files packaged with PPP.

Redux: re-instate the commenting out of the exponential back-off as requested by Felix.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27818 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-28 16:51:12 +00:00
Felix Fietkau 2895f674c4 ppp: remove -ffunction-sections, -fdata-sections and -Wl,--gc-sections, it can cause functions needed by plugins to disappear (fixes #9462)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27159 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-12 14:07:08 +00:00
Jo-Philipp Wich 6b1337376f [package] ppp: extend the r26742 change to ip-down too
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26743 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-20 12:08:12 +00:00
Jo-Philipp Wich 4e52672d7e [package] ppp: prevent duplicate hotplug for non uci managed ppp interfaces (#9275)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26742 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-20 12:02:04 +00:00
Felix Fietkau 30e3b0f535 pppd: support the nomp option if multilink support is disabled
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26614 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-12 18:29:28 +00:00
Felix Fietkau a9be9d3d5c ppp: fix fallout from the size reduction patch (thx, frogonwheels)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26398 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-02 02:24:38 +00:00
Jo-Philipp Wich 74c88f9134 [package] ppp: drop 402-use_uclibc_utils.patch, it breaks ip address conversion
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25921 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-07 09:21:25 +00:00
Felix Fietkau 4d6af2e7bb ppp: add a few patches to reduce the package size
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25919 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-07 02:09:48 +00:00
Felix Fietkau a0088333bd pppd: use -ffunction-sections, -fdata-sections and --gc-sections, saves 5k uncompressed
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25828 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-02 12:48:00 +00:00
Felix Fietkau d75cf770bf ppp: add a more descriptive title for ppp-multilink
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25524 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-13 16:25:33 +00:00
Felix Fietkau 0432c2d5a6 ppp: move multilink support into a separate build variant - saves around 30k for the default build
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25523 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-13 16:23:15 +00:00
Jo-Philipp Wich 0b36573bfa [package] ppp: don't die on malformed PADS frames that might appear on instable DSL lines
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25044 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-19 02:00:57 +00:00
Jo-Philipp Wich 807556ca27 [package] ppp: bump pkg revision after latest changes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25028 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-17 02:14:32 +00:00
Jo-Philipp Wich 0cde82bf10 [package] ppp: remove pppoa coldplug, the hotplug handler has been confirmed for ueagle and solos
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25027 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-17 02:13:07 +00:00
Jo-Philipp Wich acf1577fbf [package] ppp: synthesize a .device option to make ifup work on pppoa interfaces again
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25025 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-17 00:14:18 +00:00
Jo-Philipp Wich 93a0a1bfea [package] pppd: use "atmdev" option to select the DSL adapter, this aligns it with br2684ctl and solves #8108
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23551 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-20 17:56:29 +00:00
Jo-Philipp Wich 9fa29f2d2b [package] ppp: honour option auto in atm hotplug
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23531 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-19 07:01:38 +00:00
Jo-Philipp Wich a265e1d535 [package] ppp:
- implement coldplugging for pppoa interfaces
	- honour device option to select the DSL adapter
	- don't set any default mtu, rely on pppd to negotiate it
	- bump pkg revision


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23530 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-19 06:42:37 +00:00
Jo-Philipp Wich ffe051af99 [package] ppp: utilize the new keepfiles facility to backup the whole radius directory
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23259 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-05 19:32:49 +00:00
Jo-Philipp Wich a539c87eb3 [package] ppp: mark /etc/ppp/ resources as conffiles
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23248 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-05 17:13:07 +00:00
Jo-Philipp Wich 20e84127cd [package] add maintainer information
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23159 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-30 10:48:37 +00:00
Jo-Philipp Wich 0bff63b005 [package] ppp: use service_kill()
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23088 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-19 14:09:27 +00:00
Jo-Philipp Wich 51f5cde556 [package] ppp: populate gateway of default route with peer address (#6259)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22806 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-25 23:10:40 +00:00
Jo-Philipp Wich d4404b42d8 [package] ppp: whitespace cleanup in previous commit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22497 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-04 21:50:50 +00:00
Jo-Philipp Wich 4bc4de5afa [package] pppd: only remove own default route on shutdown (#7694)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22495 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-04 21:47:29 +00:00
Jo-Philipp Wich 5b9e5a8e9a [package] ppp: interpret "demand" option as timeout in seconds (#7517)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21903 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26 18:11:04 +00:00
Nicolas Thill 3198c447f6 bump release number for packages ahead of backfire in trunk
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21556 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-23 21:55:40 +00:00
Jo-Philipp Wich a6d4a383c8 [package] ppp: convert dos line endings in 20-atm-modem hotplug handler to unix format
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21426 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-11 19:43:27 +00:00
Jo-Philipp Wich 4c686abd91 [package] ppp:
- don't let pppd control resolv.conf.auto because it will wipe foreign dns entries
	- handle dns setup in ip-up handler
	- use add_dns() and remove_dns() to only add/remove dns entries related to the corresponding pppd instance
	- make pppd shutdown work for interfaces without ifname option, e.g. pptp


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21392 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-07 01:22:48 +00:00
Jo-Philipp Wich 229c1ed3fb [package] ppp:
- make pppd shutdown more robust as pptp hangs when the underlying connection is gone
	- don't rely on pid files generated by pppd, they're missing if the link is done, generate a per-instance pidfile with ssd instead


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21387 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-06 17:07:31 +00:00
Jo-Philipp Wich fb0679306f [package] base-files, ppp: fix interface shutdown
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21386 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-06 01:14:24 +00:00
Jo-Philipp Wich 2a8c7ceaf4 [package] base-files, ppp: remove protocol specific cleanup code from /sbin/ifdown and move it to protocol stop callbacks
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21383 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-05 23:24:11 +00:00
Jo-Philipp Wich 1564e6fa9f [package] ppp: pass "nodefaultroute" if defaultroute is 0, don't unconditionally truncate resolv.conf, thanks cshore
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21361 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-05 01:48:45 +00:00
Jo-Philipp Wich 8c0162fb0c [package] ppp: rename 20-usb-modem to 20-atm-modem
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21303 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-02 16:47:16 +00:00
Jo-Philipp Wich f83342e9a2 [package] ppp: add hotplug helper for usb dsl modems to ppp-mod-pppoa package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21302 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-02 16:40:58 +00:00
Jo-Philipp Wich aef2742bd3 [package] ppp: bring pppoa script in sync with updated ppp logic
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21287 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-01 19:18:25 +00:00
Jo-Philipp Wich 36f6667f85 [package] ppp:
- patch pppd to support named interfaces (e.g. "pppoe-wan")
	- use named interfaces when bringing up 3g, pptp, ppp or pppoe connections
	- get rid of unit count logic
	- shutdown pppd when ifdown is invoked
	- bump package revision


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21283 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-01 17:54:37 +00:00
Jo-Philipp Wich aea73391d7 [package] pppd:
- localize variables in setup script
	- implement demand option as true boolean so that 0 actually disables it
	- don't overwrite user supplied dns servers if demand is enabled
	- toggle peerdns default value, use 1 if no user supplied dns server is set, 0 otherwise
	- reset resolv.conf.auto before setting up dns


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21280 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-01 11:08:03 +00:00
Felix Fietkau e287c055e8 propagate atm header changes into pppoatm and br2684ctl as well
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20558 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-28 21:55:54 +00:00
Travis Kemen f1389d9319 /lib/network/ppp.sh fixes a problem with PPtP (and other PPP-based things) where PPtP + PPPoE will fail to work. This is because PPtP defaults to ppp0 and so does PPPoE, because /etc/init.d/ppp reinitializes the unit counter for each PPP-type connection (so you could have multiple PPtP over cable, for instance, but PPPoE + PPtP is a problem).
/etc/init.d/ppp automatically starts pptp session on boot., from #6720

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20221 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-14 21:42:56 +00:00