From owner-freebsd-questions Thu Jun 6 16:11:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by hub.freebsd.org (Postfix) with ESMTP id 2F1E137B40B for ; Thu, 6 Jun 2002 16:11:36 -0700 (PDT) Received: from k7.mavetju (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id 9409E2B6BF; Fri, 7 Jun 2002 01:11:32 +0200 (CEST) Received: by k7.mavetju (Postfix, from userid 1001) id 9C9026A7123; Fri, 7 Jun 2002 09:11:06 +1000 (EST) Date: Fri, 7 Jun 2002 09:11:06 +1000 From: Edwin Groothuis To: Rafter Man Cc: freebsd-questions@freebsd.org Subject: Re: IPv6 socket programming Message-ID: <20020607091106.H552@k7.mavetju> Mail-Followup-To: Edwin Groothuis , Rafter Man , freebsd-questions@freebsd.org References: <20020606225953.28267.qmail@linuxmail.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020606225953.28267.qmail@linuxmail.org>; from rafter@linuxmail.org on Fri, Jun 07, 2002 at 06:59:53AM +0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jun 07, 2002 at 06:59:53AM +0800, Rafter Man wrote: > Hi again > > I have asked this before, but no one answered, so I will try again. > > To program with IPv6 (sockets), we need some new functions and struct's. So my question is if: > RFC 2553 > and RFC 2292 > define these new thing? So that this is the FreeBSD socket programming standard for IPv6? It's not that difficult. Instead of using struct sockaddr_in you use struct sockaddr_in6, instead of AF_INET/PF_INET you use AF_INET6/PF_INET6, instead of .sin_addr you use .sin6_addr. Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: bash$ :(){ :|:&};: | http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message