summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_pppoe.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1999-12-01 08:05:56 +0000
committerjulian <julian@FreeBSD.org>1999-12-01 08:05:56 +0000
commit918bd93bf8f099d4bdef79401900dcb3febd7ee3 (patch)
tree67edef55114a25322e869aa55ad466d5340a9fec /sys/netgraph/ng_pppoe.c
parent737361b49b1d4f61109a883539d69e85ed2ccbc3 (diff)
downloadFreeBSD-src-918bd93bf8f099d4bdef79401900dcb3febd7ee3.zip
FreeBSD-src-918bd93bf8f099d4bdef79401900dcb3febd7ee3.tar.gz
change intial timeout for session negotiation from 1 to 2 seconds.
One second was being hit too many times in normal situations.
Diffstat (limited to 'sys/netgraph/ng_pppoe.c')
-rw-r--r--sys/netgraph/ng_pppoe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netgraph/ng_pppoe.c b/sys/netgraph/ng_pppoe.c
index 836b295..4384646 100644
--- a/sys/netgraph/ng_pppoe.c
+++ b/sys/netgraph/ng_pppoe.c
@@ -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:
OpenPOWER on IntegriCloud