vpn: Add support to allow ppp tunnelling
authorMohamed Abbas <mabbas@linux.intel.com>
Tue, 15 Nov 2011 11:06:13 +0000 (13:06 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 15 Nov 2011 12:41:44 +0000 (13:41 +0100)
commit43365bffe9cd2f4b0364c3df808a49ffcfc31090
treeda3ae3a680ec75c6985dd678a0b8cfe8a17deffb
parent43a29da43f9d9f518c939d0251bc0f266dff7887
vpn: Add support to allow ppp tunnelling

pptp and l2tp does not use tun/tab approach so change the vpn.c to
allow vpn daemon to create the interface. Now vpn plugin tell
vpn to create the device or leave to vpn client.
On connection vpn will get the interface name set the index
for the provider.

This patch is prepared by Jukka Rissanen and it contains
Mohamed Abbas original patch + fixes suggested by Daniel Wagner.
Jukka fixed memory leak in vpn_set_ifname().
plugins/vpn.c
plugins/vpn.h