]> git.ozlabs.org Git - ppp.git/commit
plugins/pppoe: Use value from pppoe-padi-* options
authorPaul Mackerras <paulus@ozlabs.org>
Sun, 28 Apr 2024 23:55:05 +0000 (09:55 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Thu, 16 May 2024 10:31:37 +0000 (20:31 +1000)
commit2cd2d134fbf3abca540cc3bc227b9dc04d10534e
tree787323843c12ea478b7611bf3803c15e3f437fe1
parent73bd762a65c68cea716fcd84d2225bb6b3b9104f
plugins/pppoe: Use value from pppoe-padi-* options

Reading the values of pppoe_padi_timeout and pppoe_padi_attempts in
PPPOEInitDevice() means that they get sampled when the parsing the
ethernet device name.  If the user provides the pppoe-padi-attempts or
pppoe-padi-timeout option after the ethernet device name, the value
given is effectively ignored.

Instead, read those variables in pppoe_check_options, which is called
after all options have been parsed, so that any user-specified values
don't get missed.

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