From owner-freebsd-hackers Wed Mar 4 21:17:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA01685 for freebsd-hackers-outgoing; Wed, 4 Mar 1998 21:17:09 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from picasso.wcape.school.za (picasso.wcape.school.za [196.21.102.12]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id VAA01670 for ; Wed, 4 Mar 1998 21:16:55 -0800 (PST) (envelope-from pvh@leftside.wcape.school.za) Received: from uucp by picasso.wcape.school.za with local-rmail (Exim 1.82 #2) id 0yAT1Z-00068o-00; Thu, 5 Mar 1998 07:16:53 +0200 Received: from localhost (pvh@localhost) by leftside.wcape.school.za (8.8.4/8.8.4) with SMTP id HAA18005 for ; Thu, 5 Mar 1998 07:16:09 +0200 (SAT) Date: Thu, 5 Mar 1998 07:16:09 +0200 (SAT) From: Peter van Heusden To: freebsd-hackers@FreeBSD.ORG Subject: Detecting state of PPP Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi How does one go about writing a program to check if a PPP link is up or down? I'm running PPP in -auto mode, and I'd like to be able to tell whether the PPP link is actually up (i.e. the modem connection is in place) at any particular time. Unfortunately, the flags on tun0 stay the same (0x8051 on my system) whether the modem is connected or not. What should I be looking at? Thanks, Peter -- Peter van Heusden | Computers Networks Reds Greens Justice Peace Beer Africa pvh@leftside.wcape.school.za | Support the SAMWU 50 litres campaign! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message