Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jun 2006 19:55:27 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To:        David Gilbert <dgilbert@dclg.ca>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: tun and SIOCSIFADDR
Message-ID:  <20060605195307.L79180@maildrop.int.zabbadoz.net>
In-Reply-To: <20060605193051.B79180@maildrop.int.zabbadoz.net>
References:  <17540.30581.541897.566515@canoe.dclg.ca> <20060605193051.B79180@maildrop.int.zabbadoz.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 5 Jun 2006, Bjoern A. Zeeb wrote:

> On Mon, 5 Jun 2006, David Gilbert wrote:
>
>> I read in the if_tun manpage that it supports SIOCSIFADDR (such that
>> it works with ifconfig).  I like examples, so I search the ifconfig
>> source code for SIOCSIFADDR.  None.  Then I search the entire source
>> tree.  ppp uses it to set the IPX address.  Obviously SIOCSIFADDR is
>> not the preferred way to do this anymore.  Hints?
>
> SIOCSIFADDR/SIOCSIFDSTADDR was deprecated about 10 years ago. See
> man 4 netintro /Calls which are now deprecated are .
> If you want SIOCSIFADDR/SIOCSIFDSTADDR for tun you need a patch I
> have in my tree.
> SIOCAIFADDR is what you really want. Look at ppp sources for examples
> for example.

oops. I misread IPX for IP but it should apply equally (though I don't
have a patch for that).

-- 
Bjoern A. Zeeb				bzeeb at Zabbadoz dot NeT



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060605195307.L79180>