Date: Sat, 7 Mar 1998 09:08:40 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: zach@gaffaneys.com (Zach Heilig) Cc: tlambert@primenet.com, bhlewis@gte.net, pvh@leftside.wcape.school.za, freebsd-hackers@FreeBSD.ORG Subject: Re: Detecting state of PPP Message-ID: <199803070908.CAA17333@usr04.primenet.com> In-Reply-To: <19980306225654.17589@gaffaneys.com> from "Zach Heilig" at Mar 6, 98 10:56:54 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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 <net/if.h>; 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803070908.CAA17333>