From owner-freebsd-questions@FreeBSD.ORG Wed Oct 17 14:37:36 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C9D9716A527 for ; Wed, 17 Oct 2007 14:37:36 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (dsl092-078-145.bos1.dsl.speakeasy.net [66.92.78.145]) by mx1.freebsd.org (Postfix) with ESMTP id 91B4313C455 for ; Wed, 17 Oct 2007 14:37:36 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: by be-well.ilk.org (Postfix, from userid 1147) id CD0F028430; Wed, 17 Oct 2007 10:37:35 -0400 (EDT) To: "Prasad Dandra" References: From: Lowell Gilbert Date: Wed, 17 Oct 2007 10:37:35 -0400 In-Reply-To: (Prasad Dandra's message of "Wed\, 17 Oct 2007 12\:16\:49 +0530") Message-ID: <44hckplscw.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.99 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Regarding Flow of sendto (UDP) using IPv6. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2007 14:37:36 -0000 "Prasad Dandra" writes: > I have some doubts regarding the BSD stack flow. > I am very much interested to know the code flow from sendto (UDP case) upto > udp6_output function when used in IPv6 client (simple client) and also how > the local port and destination address are assigned without using bind > when 1st time the sendto is called i.e where the pcbconnect and pcbbind are > called (particularly in case of ipv6)? > > Any information provided about the links, books to be refered for more > details will also be helpful. Bear in mind that the IPv6 implementation in FreeBSD has recently been exchanged for a different one, but I don't think the basic concepts are much changed. For that matter, the IPv4 model (which has plenty of book documentation covering it) isn't very different.