From owner-freebsd-hackers Tue Dec 5 1:39:44 2000 From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 5 01:39:42 2000 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mail.interware.hu (mail.interware.hu [195.70.32.130]) by hub.freebsd.org (Postfix) with ESMTP id 5F50537B401 for ; Tue, 5 Dec 2000 01:39:06 -0800 (PST) Received: from timbuktu-59.budapest.interware.hu ([195.70.51.251] helo=elischer.org) by mail.interware.hu with esmtp (Exim 3.16 #1 (Debian)) id 143EYx-0006qp-00; Tue, 05 Dec 2000 10:39:04 +0100 Sender: julian@FreeBSD.ORG Message-ID: <3A2C1917.AFF94A06@elischer.org> Date: Mon, 04 Dec 2000 14:22:15 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: oscar@163.net Cc: freebsd-hackers@freebsd.org Subject: Re: get tun0's ip from my program References: <3A2B8A42.09234@bjapp6.163.net> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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