From owner-freebsd-current Sat Dec 11 19:20:38 1999 Delivered-To: freebsd-current@freebsd.org Received: from mailgw01.execpc.com (mailgw01.execpc.com [169.207.2.78]) by hub.freebsd.org (Postfix) with ESMTP id 8ED2214F50 for ; Sat, 11 Dec 1999 19:20:36 -0800 (PST) (envelope-from hamilton@pobox.com) Received: from woodstock.monkey.net (obica-2-26.mdm.mkt.execpc.com [169.207.88.154]) by mailgw01.execpc.com (8.9.1) id VAA00999 for ; Sat, 11 Dec 1999 21:20:34 -0600 Received: from pobox.com (localhost [127.0.0.1]) by woodstock.monkey.net (Postfix) with ESMTP id 5BF1150 for ; Sat, 11 Dec 1999 21:22:01 -0600 (CST) X-Mailer: exmh version 2.1.1 10/16/1999 To: current@freebsd.org Subject: ppp over pty: trying to detect CD Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 11 Dec 1999 21:22:01 -0600 From: Jon Hamilton Message-Id: <19991212032201.5BF1150@woodstock.monkey.net> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Running -current from this afternoon, I am having a strange symptom with ppp over a pty; ppp does not detect that the pty does not support carrier, and will cycle once per second waiting for CD to appear. Putting ``set cd off'' in my ppp.conf for that target fixed the problem, but I thought I'd mention it nonetheless, since that didn't used to be required. Certainly not all that big a deal, but I thought it was worth a mention. FreeBSD 4.0-CURRENT #13: Sat Dec 11 20:31:42 CST 1999 The section from my ppp.conf: vpn: set ipcpretry 1000 set lcpretry 1000 set timeout 0 set ifaddr 192.168.1.2/0 192.168.1.1/0 255.255.255.0 set cd off <- this guy fixed the problem enable lqr accept lqr set openmode passive set log phase ipcp Connect tun Command add 192.168.2.0/24 HISADDR and the syslog with debugging turned on, with no "set cd" in the config: Dec 11 20:48:20 woodstock ppp[3106]: Phase: Using interface: tun1 Dec 11 20:48:20 woodstock ppp[3106]: Phase: deflink: Created in closed state Dec 11 20:48:20 woodstock ppp[3106]: tun1: Command: vpn: add 192.168.2.0/24 HISADDR Dec 11 20:48:20 woodstock ppp[3106]: tun1: Debug: wrote 140: cmd = Add, dst = 2a8c0, gateway = 101a8c0 Dec 11 20:48:20 woodstock ppp[3106]: tun1: Phase: PPP Started (direct mode). Dec 11 20:48:20 woodstock ppp[3106]: tun1: Debug: Select changes time: no Dec 11 20:48:20 woodstock ppp[3106]: tun1: Phase: bundle: Establish Dec 11 20:48:20 woodstock ppp[3106]: tun1: Phase: deflink: closed -> opening Dec 11 20:48:20 woodstock ppp[3106]: tun1: Debug: deflink: Input is a tty (/dev/ttyp0) Dec 11 20:48:20 woodstock ppp[3106]: tun1: Debug: deflink: tty_Create: physical (get): fd = 0, iflag = 0, oflag = 2, cflag = 4b00 Dec 11 20:48:20 woodstock ppp[3106]: tun1: Debug: deflink: physical (put): iflag = 201, oflag = 2, cflag = 3cb00 Dec 11 20:48:20 woodstock ppp[3106]: tun1: Phase: deflink: Connected! Dec 11 20:48:20 woodstock ppp[3106]: tun1: Phase: deflink: opening -> carrier Dec 11 20:48:20 woodstock ppp[3106]: tun1: Debug: deflink: Using tty_Timeout [0x8072d44] Dec 11 20:48:20 woodstock ppp[3106]: tun1: Debug: Waiting for carrier Dec 11 20:48:21 woodstock ppp[3106]: tun1: Debug: deflink: Using tty_Timeout [0x8072d44] Dec 11 20:48:21 woodstock ppp[3106]: tun1: Debug: Waiting for carrier [ and on and on and on ] -- Jon Hamilton hamilton@pobox.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message