change intial timeout for session negotiation from 1 to 2 seconds.
One second was being hit too many times in normal situations.
This commit is contained in:
parent
e09f49b6fa
commit
d0fef8084f
@ -1426,8 +1426,9 @@ AAA
|
||||
case PPPOE_SREQ:
|
||||
m0 = m_copypacket(sp->neg->m, M_DONTWAIT);
|
||||
NG_SEND_DATA( error, privp->ethernet_hook, m0, dummy);
|
||||
neg->timeout_handle = timeout(pppoe_ticker, hook, hz);
|
||||
neg->timeout = 2;
|
||||
neg->timeout_handle = timeout(pppoe_ticker, hook,
|
||||
(hz * PPPOE_INITIAL_TIMEOUT));
|
||||
neg->timeout = PPPOE_INITIAL_TIMEOUT * 2;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -126,6 +126,7 @@ struct ngpppoe_sts {
|
||||
|
||||
#define PPPOE_TIMEOUT_LIMIT 64
|
||||
#define PPPOE_OFFER_TIMEOUT 16
|
||||
#define PPPOE_INITIAL_TIMEOUT 2
|
||||
|
||||
/* Codes to identify message types */
|
||||
#define PADI_CODE 0x09
|
||||
|
Loading…
Reference in New Issue
Block a user