From owner-freebsd-hackers Mon Sep 8 23:33:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA07128 for hackers-outgoing; Mon, 8 Sep 1997 23:33:16 -0700 (PDT) Received: from mail.cdsnet.net (mail.cdsnet.net [204.118.244.5]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA07121 for ; Mon, 8 Sep 1997 23:33:13 -0700 (PDT) Received: from mail.cdsnet.net (mail.cdsnet.net [204.118.244.5]) by mail.cdsnet.net (8.8.6/8.8.6) with SMTP id XAA24027 for ; Mon, 8 Sep 1997 23:33:12 -0700 (PDT) Date: Mon, 8 Sep 1997 23:33:12 -0700 (PDT) From: Jaye Mathisen To: hackers@freebsd.org Subject: How the heck do you drop DTR? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Taking my ppp problem /modem interaction to its illogical extreme, I hacked up a simple modem dialler test system under perl5. It works OK, after having to define some constants like CCTS_IFLOW and CRTS_OFLOW that for some reason the POSIX module for perl5 doesn't define. However, for the life of me, I can't figure out how to actually drop DTR. I thought closing the file handle would do it, but it doesn't, after my program exits, the modem is still on-line, and DTR is still asserted. I've looked through the termios.h include file, and can't even find any kind of constant that may have something to do with it. getty didn't show anything obvious. revoke() doesn't look right. I can't find any docs on a function called vhangup(), or at least, no man page. Looking at the source for ppp, there's something in a HangupModem() function about setting the baud rate to 0. It looks like this does the trick, but I'm not sure it's the "right" way to do it.