Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2001 22:11:25 +0900 (JST)
From:      itojun@itojun.org (Jun-ichiro itojun Hagino)
To:        raviprasad20@netscape.net
Cc:        freebsd-net@freebsd.org
Subject:   Re: Struct ifaddr initialization.
Message-ID:  <20010424131125.1CA1A4B0B@coconut.itojun.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
> Please refer if_attach() of <net/if.c>.
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010424131125.1CA1A4B0B>