summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCan Erkin Acar <canacar@cvs.openbsd.org>2005-04-24 20:56:49 +0000
committerCan Erkin Acar <canacar@cvs.openbsd.org>2005-04-24 20:56:49 +0000
commitb25a71e8e2259b0d63dc48013857d7e4bc9a3e52 (patch)
tree2c7895d783b7376b2591203b9916c8d276e494e7
parent6eb4755771f6362722d7555e9f20ed687af44e2a (diff)
Fix cisco-mode check in lcp up/down.
-rw-r--r--sys/net/if_spppsubr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c
index 2d7cbcffd00..30cf5b456b1 100644
--- a/sys/net/if_spppsubr.c
+++ b/sys/net/if_spppsubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_spppsubr.c,v 1.31 2005/04/11 17:24:10 canacar Exp $ */
+/* $OpenBSD: if_spppsubr.c,v 1.32 2005/04/24 20:56:48 canacar Exp $ */
/*
* Synchronous PPP/Cisco link level subroutines.
* Keepalive protocol implemented in both Cisco and PPP modes.
@@ -1917,7 +1917,7 @@ sppp_lcp_up(struct sppp *sp)
STDDCL;
struct timeval tv;
- if (ifp->if_flags & PP_CISCO)
+ if (sp->pp_flags & PP_CISCO)
return;
sp->pp_alivecnt = 0;
@@ -1960,7 +1960,7 @@ sppp_lcp_down(struct sppp *sp)
{
STDDCL;
- if (ifp->if_flags & PP_CISCO)
+ if (sp->pp_flags & PP_CISCO)
return;
sppp_down_event(&lcp, sp);