Date: Thu, 7 Dec 2000 09:27:41 +0800 (CST) From: oscar@163.net To: freebsd-net@freebsd.org Subject: get tun0's ip from my program C Message-ID: <3A2EE78D.29432@bjapp4.163.net>
next 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? thanks a lot. oscar > I want to get tun0's two ip addresses. > and add ipfw rules to system at my program. > How can I do it?is there a function? or > have document describe it. someone please tell me! > thank you! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ “200家连锁网站,让眼睛尝尝鲜” http://www.chinese.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 163电子邮局,给您更完美Email服务! http://www.163.net ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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?3A2EE78D.29432>