Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Fix the wrong timeout event handler for PAP



details:   https://anonhg.NetBSD.org/src/rev/0acbe5e4ac37
branches:  trunk
changeset: 1021488:0acbe5e4ac37
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Tue Jun 01 05:22:57 2021 +0000

description:
Fix the wrong timeout event handler for PAP

sppp_auth_to_event() is a implementation of TO+/TO- event for
authentication protocol and it drops TO+ event in Ack-rcvd state.

diffstat:

 sys/net/if_spppsubr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3955094eaec7 -r 0acbe5e4ac37 sys/net/if_spppsubr.c
--- a/sys/net/if_spppsubr.c     Tue Jun 01 05:18:33 2021 +0000
+++ b/sys/net/if_spppsubr.c     Tue Jun 01 05:22:57 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_spppsubr.c,v 1.256 2021/06/01 05:16:46 yamaguchi Exp $       */
+/*     $NetBSD: if_spppsubr.c,v 1.257 2021/06/01 05:22:57 yamaguchi Exp $       */
 
 /*
  * Synchronous PPP/Cisco link level subroutines.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.256 2021/06/01 05:16:46 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.257 2021/06/01 05:22:57 yamaguchi Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -538,7 +538,7 @@
 static const struct cp pap = {
        PPP_PAP, IDX_PAP, CP_AUTH, "pap",
        sppp_up_event, sppp_down_event, sppp_open_event,
-       sppp_close_event, sppp_to_event,
+       sppp_close_event, sppp_auth_to_event,
        sppp_pap_tlu, sppp_null, sppp_tls, sppp_tlf,
        sppp_pap_scr, sppp_auth_screply,
        NULL, NULL, NULL



Home | Main Index | Thread Index | Old Index