From owner-freebsd-questions Tue May 15 0:23:53 2001 Delivered-To: freebsd-questions@freebsd.org Received: from shuttle.wide.toshiba.co.jp (shuttle.wide.toshiba.co.jp [202.249.10.124]) by hub.freebsd.org (Postfix) with ESMTP id A600D37B423; Tue, 15 May 2001 00:23:48 -0700 (PDT) (envelope-from jinmei@isl.rdc.toshiba.co.jp) Received: from localhost ([3ffe:501:100f:10c1:29b5:e8a8:4ffb:4203]) by shuttle.wide.toshiba.co.jp (8.9.1+3.1W/8.9.1) with ESMTP id QAA22321; Tue, 15 May 2001 16:22:57 +0900 (JST) Date: Tue, 15 May 2001 16:22:22 +0900 Message-ID: From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= To: vishwanath pargaonkar Cc: freebsd-net@FreeBSD.ORG, questions@FreeBSD.ORG Subject: Re: ifioctl In-Reply-To: <20010515071342.16796.qmail@web5301.mail.yahoo.com> References: <20010515071342.16796.qmail@web5301.mail.yahoo.com> User-Agent: Wanderlust/2.5.8 (Smooth) Emacs/21.0 Mule/5.0 (SAKAKI) Organization: Research & Development Center, Toshiba Corp., Kawasaki, Japan. MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII X-Dispatcher: imput version 980905(IM100) Lines: 23 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> On Tue, 15 May 2001 08:13:42 +0100 (BST), >>>>> vishwanath pargaonkar said: > i have freebsd 4.2 stable. > i want to know how autoconfiguration feature of ipv6 > gets enabled. > as far as i know ifioctl will call if_up . if_up calls > if_route and if_route calls in6_if_up which calls > in6_ifattach which forms link local address. > but how is ifioctl is initiated for a interface?? When you execute 'ifconfig ifname up', it issues the SIOCSIFFLAGS ioctl for some socket. Then the socket layer in the kernel calls ifioctl(). You should probably see Richard Stevens's "TCP/IP illustrated volume 2" to understand the kernel architecture. JINMEI, Tatuya Communication Platform Lab. Corporate R&D Center, Toshiba Corp. jinmei@isl.rdc.toshiba.co.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message