tun and SIOCSIFADDR

Bjoern A. Zeeb bzeeb-lists at lists.zabbadoz.net
Mon Jun 5 13:00:57 PDT 2006


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


More information about the freebsd-hackers mailing list