Module Name: src Committed By: yamaguchi Date: Tue May 11 06:58:03 UTC 2021
Modified Files: src/sbin/pppoectl: pppoectl.c Log Message: Make authproto not change when "authproto" is not in command option To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/sbin/pppoectl/pppoectl.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/pppoectl/pppoectl.c diff -u src/sbin/pppoectl/pppoectl.c:1.28 src/sbin/pppoectl/pppoectl.c:1.29 --- src/sbin/pppoectl/pppoectl.c:1.28 Tue May 11 05:51:42 2021 +++ src/sbin/pppoectl/pppoectl.c Tue May 11 06:58:03 2021 @@ -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);