Date: Fri, 7 Jun 2002 09:11:06 +1000 From: Edwin Groothuis <edwin@mavetju.org> To: Rafter Man <rafter@linuxmail.org> Cc: freebsd-questions@freebsd.org Subject: Re: IPv6 socket programming Message-ID: <20020607091106.H552@k7.mavetju> In-Reply-To: <20020606225953.28267.qmail@linuxmail.org>; from rafter@linuxmail.org on Fri, Jun 07, 2002 at 06:59:53AM %2B0800 References: <20020606225953.28267.qmail@linuxmail.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020607091106.H552>