]> git.ozlabs.org Git - ppp.git/commit
rp_pppoe: Copy acName and pppd_pppoe_service after option parsing
authorPaul Mackerras <paulus@samba.org>
Sun, 7 Mar 2010 05:54:00 +0000 (16:54 +1100)
committerPaul Mackerras <paulus@samba.org>
Sun, 7 Mar 2010 05:54:00 +0000 (16:54 +1100)
commitcab58617fd9d328029fffabc788020264b4fa91f
treeb8caf0e3c2d1db5493f2ee602d6c10a3e38a7576
parent3eb9e810cfa515543655659b72dde30c54fea0a5
rp_pppoe: Copy acName and pppd_pppoe_service after option parsing

At present, the access concentrator name (acName) and service name
(pppd_pppoe_service) are set by option parsing, but are used at the
point of PPPOEInitDevice(), which gets called when the ethernet
device name is seen.  So if the rp_pppoe_service or rp_pppoe_ac
options appear after the device name, they are ignored.

This fixes it by using acName and pppd_pppoe_service in
PPPOEConnectDevice, which gets called after all options have been
parsed.

Signed-off-by: Paul Mackerras <paulus@samba.org>
pppd/plugins/rp-pppoe/plugin.c