]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use 'struct callout' instead of 'struct callout_handle' to avoid
authorarchie <archie@FreeBSD.org>
Sun, 14 Apr 2002 17:37:35 +0000 (17:37 +0000)
committerarchie <archie@FreeBSD.org>
Sun, 14 Apr 2002 17:37:35 +0000 (17:37 +0000)
commit659c75a3695c396ef7f8a5fb2cd261b29a96f7a5
treeb4c78d58126bd834b457d9dbd4347609017287cc
parent09258856910ae8a198a025ce342e7be621517c6b
Use 'struct callout' instead of 'struct callout_handle' to avoid
exhausting the kernel timeout table. Perform the usual gymnastics to
avoid race conditions between node shutdown and timeouts occurring.

Also fix a bug in handling ack delays < PPTP_MIN_ACK_DELAY. Before,
we were ack'ing immediately. Instead, just impose a minimum ack delay
time, like the name of the macro implies.

MFC after: 1 week
sys/netgraph/ng_pptpgre.c