diff options
author | Joerg Wunsch <joerg@FreeBSD.org> | 2001-12-30 18:39:38 +0000 |
---|---|---|
committer | Joerg Wunsch <joerg@FreeBSD.org> | 2001-12-30 18:39:38 +0000 |
commit | e168d428517bef687afeca543866b7598f7f7845 (patch) | |
tree | da3fd2059237d00c1a866ee1e4ecc7d57e702c70 /sys/net/if_spppsubr.c | |
parent | dda374a24daeade01a2570a4037d15aacfd0321d (diff) | |
download | src-e168d428517bef687afeca543866b7598f7f7845.tar.gz src-e168d428517bef687afeca543866b7598f7f7845.zip |
We explicitly close LCP when going to state CLOSED, so we better open
it again when going from INITIAL to STARTING. This has been done for
passive or auto-conecting interfaces always, but not for permanent
ones.
Obtained from: NetBSD (rev 1.32)
Notes
Notes:
svn path=/head/; revision=88710
Diffstat (limited to 'sys/net/if_spppsubr.c')
-rw-r--r-- | sys/net/if_spppsubr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c index 8f2f7703ccc8..3bf22997509c 100644 --- a/sys/net/if_spppsubr.c +++ b/sys/net/if_spppsubr.c @@ -2139,6 +2139,10 @@ sppp_lcp_up(struct sppp *sp) lcp.Open(sp); } else if (debug) log(-1, "\n"); + } else if ((ifp->if_flags & (IFF_AUTO | IFF_PASSIVE)) == 0 && + (sp->state[IDX_LCP] == STATE_INITIAL)) { + ifp->if_flags |= IFF_RUNNING; + lcp.Open(sp); } sppp_up_event(&lcp, sp); |