Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28651 - ppp's (2.4.1-r14) pppoe.so plugin ignores some config options
Summary: ppp's (2.4.1-r14) pppoe.so plugin ignores some config options
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-13 14:59 UTC by Wojtek Sczygiol
Modified: 2003-10-11 13:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wojtek Sczygiol 2003-09-13 14:59:53 UTC
The kernel space pppoe plugin that comes with net-dialup/ppp-2.4.1-r14 
seems to ignore his own config options "pppoe_ac_name", "pppoe_srv_name",
"pppoe_hostuniq" and "pppoe_retransmit", in both server and client mode. 

Ignoring pppoe_restransmit (= number of retries) is especially annoying 
since the plugin uses an exponential backoff algorithm and with a base
of 2 seconds and a hard-coded default of 10 retries it takes 2^11-2 = 
2046 seconds = 34 minutes(!) until pppd exits or restarts (when using
"persist").
 
Steps to reproduce:

0) Unplug ethernet cable from eth0. 
1) Start your favorite packet sniffer on eth0.
2a) Start pppd (as root) with...
$ pppd noauth debug nodetach plugin pppoe.so eth0 pppoe_retransmit 3 

2b) Append pppoe_ac_name "test_ac" or/and pppoe_srv_name "test_srv"
    or/and pppoe_hostuniq "something_uniq" to 2a) 


Look at the packet dumps and you'll see that it ignores the options from
2b) and does not stop after 3 retries. Instead it keeps sending PADIs for
the next 34 minutes.

Version information:
$ uname -sr; epm -q ppp rp-pppoe gcc glibc
Linux 2.4.22-rc2-ac3
ppp-2.4.1-r14
rp-pppoe-3.5
gcc-3.3.1-r1
glibc-2.3.2-r1


Wojtek
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2003-09-22 07:16:41 UTC
i made the last commit for ppp, but i have absolutely no idea about this... 
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2003-10-02 05:56:59 UTC
please try beta3 which now in portage....
Comment 3 Heinrich Wendel (RETIRED) gentoo-dev 2003-10-11 13:14:30 UTC
did it work?