From owner-freebsd-questions@FreeBSD.ORG Wed Oct 15 12:47:13 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86C971065696 for ; Wed, 15 Oct 2008 12:47:13 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [IPv6:2001:41c8:1:548a::2]) by mx1.freebsd.org (Postfix) with ESMTP id 250CB8FC13 for ; Wed, 15 Oct 2008 12:47:13 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id 8989130126 for ; Wed, 15 Oct 2008 13:47:09 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on muon.cran.org.uk X-Spam-Level: X-Spam-Status: No, score=-2.3 required=8.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.2.3 Received: from [IPv6:2a01:348:10f:0:80b0:f5c9:af35:868f] (unknown [IPv6:2a01:348:10f:0:80b0:f5c9:af35:868f]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTP for ; Wed, 15 Oct 2008 13:47:09 +0100 (BST) Message-ID: <48F5E643.4090502@cran.org.uk> Date: Wed, 15 Oct 2008 13:46:59 +0100 From: Bruce Cran User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Binding SCTP sockets to the IPv6 lopback address X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2008 12:47:13 -0000 I've been writing some basic SCTP socket code and have found that SCTP doesn't bind to the loopback IPv6 address - it binds to all the other addresses, including the external IPv6, link-local and IPv4 loopback addresses. Is there something about the way SCTP works that means it doesn't work over IPv6 loopback? The code I'm running calls getaddrinfo with the hints to set AF_UNSPEC, SOCK_STREAM, AI_PASSIVE and then it calls bind with the protocol set to IPPROTO_SCTP. -- Bruce Cran