summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>2001-12-30 18:39:38 +0000
committerjoerg <joerg@FreeBSD.org>2001-12-30 18:39:38 +0000
commitf9e09a735d1d0bcf53a6a25dbff52bfff9836855 (patch)
treeda3fd2059237d00c1a866ee1e4ecc7d57e702c70 /sys/net
parente29f60d9f9e94944ef319a1b187b30aaa31e6a79 (diff)
downloadFreeBSD-src-f9e09a735d1d0bcf53a6a25dbff52bfff9836855.zip
FreeBSD-src-f9e09a735d1d0bcf53a6a25dbff52bfff9836855.tar.gz
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)
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_spppsubr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c
index 8f2f770..3bf2299 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);
OpenPOWER on IntegriCloud