From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 5 18:27:11 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4EFC16A704 for ; Mon, 5 Jun 2006 18:27:11 +0000 (UTC) (envelope-from dgilbert@daveg.ca) Received: from ox.eicat.ca (ox.eicat.ca [66.96.30.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D60043D49 for ; Mon, 5 Jun 2006 18:27:11 +0000 (GMT) (envelope-from dgilbert@daveg.ca) Received: by ox.eicat.ca (Postfix, from userid 66) id 574631D2DB; Mon, 5 Jun 2006 14:27:10 -0400 (EDT) Received: by canoe.dclg.ca (Postfix, from userid 101) id 15EFB4AC3B; Mon, 5 Jun 2006 14:27:02 -0400 (EDT) From: David Gilbert MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17540.30581.541897.566515@canoe.dclg.ca> Date: Mon, 5 Jun 2006 14:27:01 -0400 To: freebsd-hackers@freebsd.org X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid Subject: tun and SIOCSIFADDR X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 18:27:18 -0000 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? Dave. -- ============================================================================ |David Gilbert, Independent Contractor. | Two things can be | |Mail: dave@daveg.ca | equal if and only if they | |http://daveg.ca | are precisely opposite. | =========================================================GLO================