From b25a71e8e2259b0d63dc48013857d7e4bc9a3e52 Mon Sep 17 00:00:00 2001 From: Can Erkin Acar Date: Sun, 24 Apr 2005 20:56:49 +0000 Subject: Fix cisco-mode check in lcp up/down. --- sys/net/if_spppsubr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/net/if_spppsubr.c') 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); -- cgit v1.2.3