ppp : Unnumbered support
authorSteven Barth <steven@midlink.org>
Fri, 12 Jun 2015 07:37:53 +0000 (07:37 +0000)
committerSteven Barth <steven@midlink.org>
Fri, 12 Jun 2015 07:37:53 +0000 (07:37 +0000)
commit7368821fc7468338018bcc79bc6f467631808650
tree6e4afc7de63215afee32c63d7cf495ab0f17afb1
parentd175ac81d9f26d6ccfc9d0468f79ce797f727940
ppp : Unnumbered support

Adds PPP unnumbered support via the parameter unnumbered which points to a logical OpenWRT interface.
The PPP proto shell handler will "borrow" an IP address from the unnumbered interface (if multiple
IP addresses are present the longest prefix different from 32 will be "borrowed") for which a host
interface dependency will be created. Due to the host interface dependency the PPP unnumbered interface
will only "borrow" an IP address from an interface which is up.
The borrowed IP address will be shared as local IP address by the PPP daemon and no other local IP
will be accepted from the peer in the IPCP negotiation.

A typical use case is the usage of a public IP subnet on the Lan interface which will be shared
by the PPP interface as local IP address.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45948 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/network/services/ppp/files/ppp.sh