diff options
author | Roman Kurakin <rik@FreeBSD.org> | 2004-12-03 16:57:15 +0000 |
---|---|---|
committer | Roman Kurakin <rik@FreeBSD.org> | 2004-12-03 16:57:15 +0000 |
commit | 052bf4427fee9b86c305d18c5d5e8a5be16304af (patch) | |
tree | 99796a5bc6860fdea8521ca82dee114780bc35b2 /sys/dev/cp | |
parent | dd3e3dfb6f0bad090b392e0db747f5994c241b62 (diff) | |
download | src-052bf4427fee9b86c305d18c5d5e8a5be16304af.tar.gz src-052bf4427fee9b86c305d18c5d5e8a5be16304af.zip |
Don not call pp_down()/pp_up() form XX_tlf()/XX_tls() in non PPP mode
to privent running of PPP's state machine in non PPP mode.
MFC: after 3 days.
Notes
Notes:
svn path=/head/; revision=138352
Diffstat (limited to 'sys/dev/cp')
-rw-r--r-- | sys/dev/cp/if_cp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/cp/if_cp.c b/sys/dev/cp/if_cp.c index ec9b73e073c6..ace4a29ebd10 100644 --- a/sys/dev/cp/if_cp.c +++ b/sys/dev/cp/if_cp.c @@ -658,7 +658,8 @@ static void cp_tlf (struct sppp *sp) CP_DEBUG2 (d, ("cp_tlf\n")); /* cp_set_dtr (d->chan, 0);*/ /* cp_set_rts (d->chan, 0);*/ - sp->pp_down (sp); + if (!(d->pp.pp_flags & PP_FR) && !(d->pp.pp_if.if_flags & PP_CISCO)) + sp->pp_down (sp); } static void cp_tls (struct sppp *sp) @@ -666,7 +667,8 @@ static void cp_tls (struct sppp *sp) drv_t *d = sp->pp_if.if_softc; CP_DEBUG2 (d, ("cp_tls\n")); - sp->pp_up (sp); + if (!(d->pp.pp_flags & PP_FR) && !(d->pp.pp_if.if_flags & PP_CISCO)) + sp->pp_up (sp); } /* |