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. -- Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

