diff options
author | Can Erkin Acar <canacar@cvs.openbsd.org> | 2005-04-01 22:09:33 +0000 |
---|---|---|
committer | Can Erkin Acar <canacar@cvs.openbsd.org> | 2005-04-01 22:09:33 +0000 |
commit | 36e2c747372b1e097aa424f5389a520bfe7acdd8 (patch) | |
tree | 515cc69141de3ce65d6abde4307efab762300b31 /sys/net/if_spppsubr.c | |
parent | 682ef1f846d5b44e96c516dbcdc3bb8c6d4e7ce2 (diff) |
do not mess with lcp if we are in cisco mode
Diffstat (limited to 'sys/net/if_spppsubr.c')
-rw-r--r-- | sys/net/if_spppsubr.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c index 668ca1f64c1..6639234e5ca 100644 --- a/sys/net/if_spppsubr.c +++ b/sys/net/if_spppsubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_spppsubr.c,v 1.29 2005/03/24 16:37:52 claudio Exp $ */ +/* $OpenBSD: if_spppsubr.c,v 1.30 2005/04/01 22:09:32 canacar Exp $ */ /* * Synchronous PPP/Cisco link level subroutines. * Keepalive protocol implemented in both Cisco and PPP modes. @@ -1027,7 +1027,9 @@ sppp_ioctl(struct ifnet *ifp, u_long cmd, void *data) } if (going_up || going_down) - lcp.Close(sp); + if (!(sp->pp_flags & PP_CISCO)) + lcp.Close(sp); + if (going_up && newmode == 0) { /* neither auto-dial nor passive */ ifp->if_flags |= IFF_RUNNING; |