Source-Changes-HG archive

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

[src/trunk]: src/sys Added SPPP_NORECV_TIME option to change pp_max_noreceive



details:   https://anonhg.NetBSD.org/src/rev/80ce70dec7ad
branches:  trunk
changeset: 379144:80ce70dec7ad
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Fri May 14 08:31:14 2021 +0000

description:
Added SPPP_NORECV_TIME option to change pp_max_noreceive

diffstat:

 sys/conf/files        |   3 ++-
 sys/net/if_spppsubr.c |  10 +++++++---
 2 files changed, 9 insertions(+), 4 deletions(-)

diffs (55 lines):

diff -r cfe46c708741 -r 80ce70dec7ad sys/conf/files
--- a/sys/conf/files    Fri May 14 08:11:08 2021 +0000
+++ b/sys/conf/files    Fri May 14 08:31:14 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files,v 1.1280 2021/05/14 08:06:32 yamaguchi Exp $
+#      $NetBSD: files,v 1.1281 2021/05/14 08:31:14 yamaguchi Exp $
 #      @(#)files.newconf       7.5 (Berkeley) 5/10/93
 
 version        20171118
@@ -291,6 +291,7 @@ defflag     opt_ppp.h               PPP_DEFLATE PPP_BSDCO
 defflag opt_pppoe.h            PPPOE_SERVER PPPOE_DEBUG
 
 defparam opt_sppp.h            SPPP_KEEPALIVE_INTERVAL
+                               SPPP_NORECV_TIME
 
 # networking options
 #
diff -r cfe46c708741 -r 80ce70dec7ad sys/net/if_spppsubr.c
--- a/sys/net/if_spppsubr.c     Fri May 14 08:11:08 2021 +0000
+++ b/sys/net/if_spppsubr.c     Fri May 14 08:31:14 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_spppsubr.c,v 1.239 2021/05/14 08:11:08 yamaguchi Exp $       */
+/*     $NetBSD: if_spppsubr.c,v 1.240 2021/05/14 08:31:14 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.239 2021/05/14 08:11:08 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.240 2021/05/14 08:31:14 yamaguchi Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -107,6 +107,10 @@
 #define SPPP_KEEPALIVE_INTERVAL                DEFAULT_KEEPALIVE_INTERVAL
 #endif
 
+#ifndef SPPP_NORECV_TIME
+#define SPPP_NORECV_TIME       DEFAULT_NORECV_TIME
+#endif
+
 /*
  * Interface flags that can be set in an ifconfig command.
  *
@@ -1101,7 +1105,7 @@ sppp_attach(struct ifnet *ifp)
        sp->pp_last_activity = 0;
        sp->pp_last_receive = 0;
        sp->pp_maxalive = DEFAULT_MAXALIVECNT;
-       sp->pp_max_noreceive = DEFAULT_NORECV_TIME;
+       sp->pp_max_noreceive = SPPP_NORECV_TIME;
        sp->pp_idle_timeout = 0;
        sp->pp_max_auth_fail = DEFAULT_MAX_AUTH_FAILURES;
        sp->pp_phase = SPPP_PHASE_DEAD;



Home | Main Index | Thread Index | Old Index