Date: Thu, 07 Dec 2000 02:05:15 +0000 From: Brian Somers <brian@Awfulhak.org> To: oscar@163.net Cc: freebsd-net@FreeBSD.ORG, brian@Awfulhak.org Subject: Re: get tun0's ip from my program C Message-ID: <200012070205.eB725Ft44208@hak.lan.Awfulhak.org> In-Reply-To: Message from oscar@163.net of "Thu, 07 Dec 2000 09:27:41 %2B0800." <3A2EE78D.29432@bjapp4.163.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> Thank for all replys from friends.
> But I want to know use C program to get
> the ip address, not script.
> it must use network-interface ioctl and SIOCSIFADDR
> as param.But I do not know how to do this.
> Can anyone write a small example function to do this?
src/usr.sbin/ppp/iface.c does this sort of thing using sysctl().
> thanks a lot.
>
> oscar
--
Brian <brian@Awfulhak.org> <brian@[uk.]FreeBSD.org>
<http://www.Awfulhak.org> <brian@[uk.]OpenBSD.org>
Don't _EVER_ lose your sense of humour !
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012070205.eB725Ft44208>
