summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcanacar <canacar@openbsd.org>2005-04-11 17:24:10 +0000
committercanacar <canacar@openbsd.org>2005-04-11 17:24:10 +0000
commit0a746996c2315a7708f39827e15e00d319a97480 (patch)
treedc54069e775505241544793316e5790abe20bf97
parenthandle -1 potential case from snprintf too (diff)
downloadwireguard-openbsd-0a746996c2315a7708f39827e15e00d319a97480.tar.xz
wireguard-openbsd-0a746996c2315a7708f39827e15e00d319a97480.zip
Ignore lcp up/down events in cisco mode
-rw-r--r--sys/net/if_spppsubr.c8
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);
/*