From owner-freebsd-hackers Wed Mar 4 23:50:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA26680 for freebsd-hackers-outgoing; Wed, 4 Mar 1998 23:50:14 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mail.netcetera.dk (root@sleipner.netcetera.dk [194.192.207.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA26671 for ; Wed, 4 Mar 1998 23:50:08 -0800 (PST) (envelope-from leifn@image.dk) Received: (from uucp@localhost) by mail.netcetera.dk (8.8.8/8.8.8) with UUCP id IAA10262 for freebsd-hackers@freebsd.org; Thu, 5 Mar 1998 08:49:32 +0100 Received: by swimsuit.swimsuit.roskildebc.dk (0.99.970109) id AA03869; 05 Mar 98 08:52:24 +0100 From: leifn@image.dk (Leif Neland) Date: 05 Mar 98 08:42:52 +0100 Subject: Detecting state of PPP Message-ID: Organization: Fidonet: Swimsuit Safari. Go for it. To: freebsd-hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 05 Mar 98 06:16:09 Peter van Heusden (2:234/49.99) wrote to All regarding Detecting state of PPP in area "freebsd-hacker" Pv> How does one go about writing a program to check if a PPP link Pv> is up or down? I'm running PPP in -auto mode, and I'd like to be Pv> able to tell whether the PPP link is actually up (i.e. the modem Pv> connection is in place) at any particular time. Unfortunately, Pv> the flags on tun0 stay the same (0x8051 on my system) whether Pv> the modem is connected or not. What should I be looking at? In lack of anything better, you could do a tail on ppp.log through awk to look for the right strings. Leif Neland leifn@image.dk --- |Fidonet: Leif Neland 2:234/49 |Internet: leifn@image.dk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message