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/15af187ee71f
branches:  trunk
changeset: 983292:15af187ee71f
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 15c85a8b423f -r 15af187ee71f 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_pppoe.h            PPPOE_SERVER PPPOE_DEBUG
 
 defparam opt_sppp.h            SPPP_KEEPALIVE_INTERVAL
+                               SPPP_NORECV_TIME
 
 # networking options
 #
diff -r 15c85a8b423f -r 15af187ee71f 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 @@
        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