From owner-freebsd-hackers Sat Mar 7 01:09:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA13818 for freebsd-hackers-outgoing; Sat, 7 Mar 1998 01:09:03 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp01.primenet.com (smtp01.primenet.com [206.165.6.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA13790 for ; Sat, 7 Mar 1998 01:08:57 -0800 (PST) (envelope-from tlambert@usr04.primenet.com) Received: (from daemon@localhost) by smtp01.primenet.com (8.8.8/8.8.8) id CAA10859; Sat, 7 Mar 1998 02:08:57 -0700 (MST) Received: from usr04.primenet.com(206.165.6.204) via SMTP by smtp01.primenet.com, id smtpd010821; Sat Mar 7 02:08:47 1998 Received: (from tlambert@localhost) by usr04.primenet.com (8.8.5/8.8.5) id CAA17333; Sat, 7 Mar 1998 02:08:40 -0700 (MST) From: Terry Lambert Message-Id: <199803070908.CAA17333@usr04.primenet.com> Subject: Re: Detecting state of PPP To: zach@gaffaneys.com (Zach Heilig) Date: Sat, 7 Mar 1998 09:08:40 +0000 (GMT) Cc: tlambert@primenet.com, bhlewis@gte.net, pvh@leftside.wcape.school.za, freebsd-hackers@FreeBSD.ORG In-Reply-To: <19980306225654.17589@gaffaneys.com> from "Zach Heilig" at Mar 6, 98 10:56:54 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > Of course, not all of the includes are needed; I ripped this out of an > > experimental piece of DHCP code. > > After cleaning it up so it will compile, I tried your code. I always get: > tun0: up > > no matter what the actual state is. Look in ; I probably misspoke, and you probably want IFF_RUNNING. You can see these flags by doing an ifconfig -a before and after linkup; that should be enough to tell you what you should be looking for. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message