Source-Changes-HG archive

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

[src/trunk]: src/sbin/pppoectl Add a new option to enable SPPP_AUTHFLAG_PASSI...



details:   https://anonhg.NetBSD.org/src/rev/dbbd240e971e
branches:  trunk
changeset: 378679:dbbd240e971e
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Fri Apr 23 02:28:40 2021 +0000

description:
Add a new option to enable SPPP_AUTHFLAG_PASSIVEAUTHPROTO flag

diffstat:

 sbin/pppoectl/pppoectl.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r a836cb21ec60 -r dbbd240e971e sbin/pppoectl/pppoectl.c
--- a/sbin/pppoectl/pppoectl.c  Fri Apr 23 01:56:14 2021 +0000
+++ b/sbin/pppoectl/pppoectl.c  Fri Apr 23 02:28:40 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pppoectl.c,v 1.26 2020/11/25 10:32:54 yamaguchi Exp $  */
+/*     $NetBSD: pppoectl.c,v 1.27 2021/04/23 02:28:40 yamaguchi Exp $  */
 
 /*
  * Copyright (c) 1997 Joerg Wunsch
@@ -31,7 +31,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: pppoectl.c,v 1.26 2020/11/25 10:32:54 yamaguchi Exp $");
+__RCSID("$NetBSD: pppoectl.c,v 1.27 2021/04/23 02:28:40 yamaguchi Exp $");
 #endif
 
 
@@ -433,6 +433,8 @@ pppoectl_argument(char *arg)
                spr.hisauthflags |= SPPP_AUTHFLAG_NORECHALLENGE;
        else if (strcmp(arg, "rechallenge") == 0)
                spr.hisauthflags &= ~SPPP_AUTHFLAG_NORECHALLENGE;
+       else if (strcmp(arg, "passiveauthproto") == 0)
+               spr.myauthflags |= SPPP_AUTHFLAG_PASSIVEAUTHPROTO;
 #ifndef __NetBSD__
        else if (strcmp(arg, "enable-vj") == 0)
                spr.defs.enable_vj = 1;



Home | Main Index | Thread Index | Old Index