diff options
author | Can Erkin Acar <canacar@cvs.openbsd.org> | 2005-04-11 17:24:11 +0000 |
---|---|---|
committer | Can Erkin Acar <canacar@cvs.openbsd.org> | 2005-04-11 17:24:11 +0000 |
commit | 1bd73ba6c9a462466984f3d25296d75dbeb82c1e (patch) | |
tree | 73ed843a4a97ccaced7dd93e9b6116abb3dd3a5c /sys | |
parent | 5f2fe8ab5c0d2f95d45712ba391f44eccec01d62 (diff) |
Ignore lcp up/down events in cisco mode
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_spppsubr.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c index 6639234e5ca..2d7cbcffd00 100644 --- a/sys/net/if_spppsubr.c +++ b/sys/net/if_spppsubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_spppsubr.c,v 1.30 2005/04/01 22:09:32 canacar Exp $ */ +/* $OpenBSD: if_spppsubr.c,v 1.31 2005/04/11 17:24:10 canacar Exp $ */ /* * Synchronous PPP/Cisco link level subroutines. * Keepalive protocol implemented in both Cisco and PPP modes. @@ -1917,6 +1917,9 @@ sppp_lcp_up(struct sppp *sp) STDDCL; struct timeval tv; + if (ifp->if_flags & PP_CISCO) + return; + sp->pp_alivecnt = 0; sp->lcp.opts = (1 << LCP_OPT_MAGIC); sp->lcp.magic = 0; @@ -1957,6 +1960,9 @@ sppp_lcp_down(struct sppp *sp) { STDDCL; + if (ifp->if_flags & PP_CISCO) + return; + sppp_down_event(&lcp, sp); /* |