Date: Mon, 5 Jun 2006 19:36:20 +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: <20060605193051.B79180@maildrop.int.zabbadoz.net> In-Reply-To: <17540.30581.541897.566515@canoe.dclg.ca> References: <17540.30581.541897.566515@canoe.dclg.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060605193051.B79180>