Date: 05 Mar 98 08:42:52 +0100 From: leifn@image.dk (Leif Neland) To: freebsd-hackers@FreeBSD.ORG Subject: Detecting state of PPP Message-ID: <b0d_9803050852@swimsuit.swimsuit.roskildebc.dk>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b0d_9803050852>