From owner-freebsd-net Tue Apr 24 6:11:36 2001 Delivered-To: freebsd-net@freebsd.org Received: from coconut.itojun.org (coconut.itojun.org [210.160.95.97]) by hub.freebsd.org (Postfix) with ESMTP id 3184237B59E for ; Tue, 24 Apr 2001 06:11:34 -0700 (PDT) (envelope-from itojun@itojun.org) Received: by coconut.itojun.org (Postfix, from userid 1001) id 1CA1A4B0B; Tue, 24 Apr 2001 22:11:25 +0900 (JST) To: raviprasad20@netscape.net Cc: freebsd-net@freebsd.org Subject: Re: Struct ifaddr initialization. In-Reply-To: Your message of "Tue, 24 Apr 2001 09:00:39 -0400" <0FE8E703.73B8EB68.9513E96F@netscape.net> References: <0FE8E703.73B8EB68.9513E96F@netscape.net> X-Mailer: Cue version 0.6 (010413-1335/itojun) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Message-Id: <20010424131125.1CA1A4B0B@coconut.itojun.org> Date: Tue, 24 Apr 2001 22:11:25 +0900 (JST) From: itojun@itojun.org (Jun-ichiro itojun Hagino) Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Please refer if_attach() of . > Iam unable to understand why you are constructing a string from interface name & interface unit number ( ifnet structure members ifp->if_unit & ifp->if_name) & storing in the data member of sockaddr_dl structure. Iam also confused why you are storing the hardware address in the sockaddr_dl structure after the above string. I feel that hardware address can be accessed through the ifnet structure. > > Kindly tell me the significance of the ifaddr structure initialization for ipv6 since it does not store any ip addresses. How other modules benifit from this? Where it is used? I strongly suggest you to get a copy of "TCP/IP illustrated volume II" by Richard Stevens. FreeBSD IPv6 code (integrated from KAME project) follows 4.4BSD network stack design. the above questions are not specific to IPv6, but is a question against 4.4BSD network stack. itojun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message