Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Dec 2000 14:22:15 -0800
From:      Julian Elischer <julian@elischer.org>
To:        oscar@163.net
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: get tun0's ip from my program
Message-ID:  <3A2C1917.AFF94A06@elischer.org>
References:  <3A2B8A42.09234@bjapp6.163.net>

next in thread | previous in thread | raw e-mail | index | archive | help
oscar@163.net wrote:
> 
> 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!
ifconfig tun0 | awk {small awk program}

of course WHY do you want to do this?

that may help more..
.
> thank you!
> 
> oscar
> oscar@163.net
> 
> 
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> “200家连锁网站,让眼睛尝尝鲜”
> http://www.chinese.com
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 163电子邮局,给您更完美Email服务!
> http://www.163.net
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message

-- 
      __--_|\  Julian Elischer
     /       \ julian@elischer.org
    (   OZ    ) World tour 2000
---> X_.---._/  presently in:  Budapest
            v




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?3A2C1917.AFF94A06>