Ah, I see the problem.  I have a fix - I'm about to apply it to 
-current and ask jkh for permission to MFC.

I've attached the -stable patch for your viewing enjoyment....

> >>>>> "JH" == Jon Hamilton <[EMAIL PROTECTED]> writes:
> 
>     JH> Running -current from this afternoon, I am having a strange
>     JH> symptom with  ppp over a pty; ppp does not detect that the pty
>     JH> does not support carrier, and will cycle once per second
>     JH> waiting for CD to appear.  Putting ``set cd off'' in my
>     JH> ppp.conf for that target fixed the problem, but I thought I'd
>     JH> mention it nonetheless, since that didn't used to be
>     JH> required. Certainly not all that big a deal, but I thought it
>     JH> was worth a mention.
> 
>     JH> FreeBSD 4.0-CURRENT #13: Sat Dec 11 20:31:42 CST 1999
> 
> I am using 3-STABLE but I have the same problem with you. I think it
> comes after adding pppoe support in pppd(after 3.3-RELEASE). I am
> -STABLE user but I had to back to 3.3-RELEASE's ppp... I am using ADSL
> service with pptpclient.
> 
>     JH> and the syslog with debugging turned on, with no "set cd" in the config:
> 
>     JH> Dec 11 20:48:20 woodstock ppp[3106]: tun1: Debug: deflink: Using tty_Timeout 
>[0x8072d44]
>     JH> Dec 11 20:48:20 woodstock ppp[3106]: tun1: Debug: Waiting for carrier
>     JH> Dec 11 20:48:21 woodstock ppp[3106]: tun1: Debug: deflink: Using tty_Timeout 
>[0x8072d44]
>     JH> Dec 11 20:48:21 woodstock ppp[3106]: tun1: Debug: Waiting for carrier
> 
>     JH> [ and on and on and on ]
> 
> -- 
>  +++ Any opinions in this posting are my own and not those of my employers +++
>  CHOI, Junho <mailto:[EMAIL PROTECTED]> <http://www.kr.freebsd.org/~cjh>
>  - Korea FreeBSD Users Group <http://www.kr.FreeBSD.org>
>  - Public Service, Youido Post Office  - Web Data Bank <http://www.wdb.co.kr>

-- 
Brian <[EMAIL PROTECTED]>                        <[EMAIL PROTECTED]>
      <http://www.Awfulhak.org>                   <[EMAIL PROTECTED]>
Don't _EVER_ lose your sense of humour !          <[EMAIL PROTECTED]>

Index: tty.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/ppp/tty.c,v
retrieving revision 1.12.2.3
diff -u -r1.12.2.3 tty.c
--- tty.c       1999/11/19 23:48:04     1.12.2.3
+++ tty.c       1999/12/13 07:30:44
@@ -112,6 +112,7 @@
       log_Printf(LogDEBUG, "%s: ioctl error (%s)!\n", p->link.name,
                  strerror(errno));
       timer_Stop(&dev->Timer);
+      dev->mbits = TIOCM_CD;
       return;
     }
   } else
@@ -187,8 +188,7 @@
     return CARRIER_PENDING;                    /* Not yet ! */
   }
 
-  return Online(dev) || !p->cfg.cd.necessity == CD_REQUIRED ?
-    CARRIER_OK : CARRIER_LOST;
+  return Online(dev) ? CARRIER_OK : CARRIER_LOST;
 }
 
 static int




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to