summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/datalink.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-06-12 17:45:10 +0000
committerbrian <brian@FreeBSD.org>1998-06-12 17:45:10 +0000
commit0cb00afb55f57f563f31446c912021e60f8b11ce (patch)
tree48298fba1b71a67ec155ca148df8d9bf63054235 /usr.sbin/ppp/datalink.c
parent669024d8256e3492a6a1758a953d26e68c222f6c (diff)
downloadFreeBSD-src-0cb00afb55f57f563f31446c912021e60f8b11ce.zip
FreeBSD-src-0cb00afb55f57f563f31446c912021e60f8b11ce.tar.gz
o Maintain a link-type mask for open datalinks as well as
for all datalinks in a bundle. Ppp now deals correctly with link types that are changed while open o When changing the type of the last AUTO link, only clear the interface if we're not in PHASE_NETWORK. This allows us to switch to -ddial mode while we have a connection without suddenly unexpectedly throttling ourselves by clearing the interface configuration. Problem area noted by: Aaron Jeremias Luz <aaron@csh.rit.edu>
Diffstat (limited to 'usr.sbin/ppp/datalink.c')
-rw-r--r--usr.sbin/ppp/datalink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/datalink.c b/usr.sbin/ppp/datalink.c
index a754c75..06aa739 100644
--- a/usr.sbin/ppp/datalink.c
+++ b/usr.sbin/ppp/datalink.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: datalink.c,v 1.6 1998/05/28 23:15:33 brian Exp $
+ * $Id: datalink.c,v 1.7 1998/05/29 18:32:10 brian Exp $
*/
#include <sys/types.h>
@@ -509,6 +509,7 @@ datalink_LayerDown(void *v, struct fsm *fp)
peerid_Init(&dl->peer);
fsm_Down(&dl->physical->link.ccp.fsm);
fsm_Close(&dl->physical->link.ccp.fsm);
+ datalink_NewState(dl, DATALINK_LCP); /* before parent TLD */
(*dl->parent->LayerDown)(dl->parent->object, fp);
/* fall through */
OpenPOWER on IntegriCloud