Module Name: src Committed By: yamaguchi Date: Fri Apr 16 02:05:37 UTC 2021
Modified Files: src/sys/net: if_spppsubr.c Log Message: Fix not to put the wrong error message To generate a diff of this commit: cvs rdiff -u -r1.215 -r1.216 src/sys/net/if_spppsubr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/net/if_spppsubr.c diff -u src/sys/net/if_spppsubr.c:1.215 src/sys/net/if_spppsubr.c:1.216 --- src/sys/net/if_spppsubr.c:1.215 Fri Nov 27 03:37:11 2020 +++ src/sys/net/if_spppsubr.c Fri Apr 16 02:05:37 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: if_spppsubr.c,v 1.215 2020/11/27 03:37:11 yamaguchi Exp $ */ +/* $NetBSD: if_spppsubr.c,v 1.216 2021/04/16 02:05:37 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.215 2020/11/27 03:37:11 yamaguchi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.216 2021/04/16 02:05:37 yamaguchi Exp $"); #if defined(_KERNEL_OPT) #include "opt_inet.h" @@ -1933,6 +1933,13 @@ sppp_down_event(struct sppp *sp, void *x sppp_cp_change_state(cp, sp, STATE_STARTING); break; default: + /* + * a down event may be caused regardless + * of state just in LCP case. + */ + if (cp->proto == PPP_LCP) + break; + printf("%s: %s illegal down in state %s\n", ifp->if_xname, cp->name, sppp_state_name(sp->scp[cp->protoidx].state));