Fix PPTP when used over WAN setup using PPPoE
commite8ef0e67dad8bd52334a8eefb48aa80169b11be5
authorJean-Yves Avenard <jean-yves@avenard.org>
Mon, 21 Nov 2011 01:41:12 +0000 (21 12:41 +1100)
committerToastman <toastman@galactic_core>
Mon, 5 Dec 2011 08:29:11 +0000 (5 15:29 +0700)
treebf6775cff90bfc3ae631c7dcf5572971d22cba39
parent9c434c7b1b12fe8fc82178651241f173f6ddaa11
Fix PPTP when used over WAN setup using PPPoE

WAN options were set using the system-wide pppd options file.
the pppd process read the system-wide options file (in /tmp/ppp/options) before reading any other configuration. This meant that really, only one pppd process could run at a time.

We now store the pppd options into /tmp/ppp/wanoptions and start the main pppd with: pppd file /tmp/ppp/wanoptions
That way, we can start subsequent pppd process without conflicting options.
release/src/router/rc/pptp_client.c
release/src/router/rc/wan.c