Source-Changes-HG archive

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

[src/trunk]: src/sbin/pppoectl Make authproto not change when "authproto" is ...



details:   https://anonhg.NetBSD.org/src/rev/eac3391d9698
branches:  trunk
changeset: 379108:eac3391d9698
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Tue May 11 06:58:03 2021 +0000

description:
Make authproto not change when "authproto" is not in command option

diffstat:

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

diffs (27 lines):

diff -r e616cae6f7e7 -r eac3391d9698 sbin/pppoectl/pppoectl.c
--- a/sbin/pppoectl/pppoectl.c  Tue May 11 06:42:42 2021 +0000
+++ b/sbin/pppoectl/pppoectl.c  Tue May 11 06:58:03 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pppoectl.c,v 1.28 2021/05/11 05:51:42 yamaguchi Exp $  */
+/*     $NetBSD: pppoectl.c,v 1.29 2021/05/11 06:58:03 yamaguchi Exp $  */
 
 /*
  * Copyright (c) 1997 Joerg Wunsch
@@ -31,7 +31,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: pppoectl.c,v 1.28 2021/05/11 05:51:42 yamaguchi Exp $");
+__RCSID("$NetBSD: pppoectl.c,v 1.29 2021/05/11 06:58:03 yamaguchi Exp $");
 #endif
 
 
@@ -203,6 +203,8 @@ main(int argc, char **argv)
 
        memset(&spr, 0, sizeof spr);
        strncpy(spr.ifname, ifname, sizeof spr.ifname);
+       spr.myauth = SPPP_AUTHPROTO_NOCHG;
+       spr.hisauth = SPPP_AUTHPROTO_NOCHG;
        memset(&lcp, 0, sizeof lcp);
        strncpy(lcp.ifname, ifname, sizeof lcp.ifname);
        memset(&ncp, 0, sizeof ncp);



Home | Main Index | Thread Index | Old Index