From owner-freebsd-bugs@FreeBSD.ORG Thu Feb 16 19:20:07 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B46661065670 for ; Thu, 16 Feb 2012 19:20:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 719268FC1A for ; Thu, 16 Feb 2012 19:20:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1GJK7Pl085445 for ; Thu, 16 Feb 2012 19:20:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1GJK7Wc085444; Thu, 16 Feb 2012 19:20:07 GMT (envelope-from gnats) Resent-Date: Thu, 16 Feb 2012 19:20:07 GMT Resent-Message-Id: <201202161920.q1GJK7Wc085444@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Maxim "WGH" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB3F1106564A for ; Thu, 16 Feb 2012 19:18:31 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id BA8F68FC19 for ; Thu, 16 Feb 2012 19:18:31 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q1GJIUEt076735 for ; Thu, 16 Feb 2012 19:18:30 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q1GJIUGi076734; Thu, 16 Feb 2012 19:18:30 GMT (envelope-from nobody) Message-Id: <201202161918.q1GJIUGi076734@red.freebsd.org> Date: Thu, 16 Feb 2012 19:18:30 GMT From: Maxim "WGH" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/165210: SCTP sockets don't bind on interfaces created by netgraph X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2012 19:20:07 -0000 >Number: 165210 >Category: kern >Synopsis: SCTP sockets don't bind on interfaces created by netgraph >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 16 19:20:07 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Maxim "WGH" >Release: 8.1-RELEASE-p1 >Organization: >Environment: FreeBSD torlan 8.1-RELEASE-p1 FreeBSD 8.1-RELEASE-p1 #8: Sat Oct 30 23:25:06 MSD 2010 wgh@torlan:/usr/obj/usr/src/sys/TORLAN i386 >Description: I was experimenting with SCTP, and I noticed I couldn't bind SCTP socket to interface ng0, which was created by mpd5 (net/mpd5) daemon. bind() system calls fails with errno 49 "Can't assign requested address". It does bind on any other address in the system, including 0.0.0.0 (INADDR_ANY). The latter still doesn't allow incoming SCTP connections on that address though (although instead of "connection refused" I get hanging connect()). I've looked through both netgraph and sctp source code. netgraph creates IFT_PROPVIRTUAL interfaces, and there is a function in sctp called sctp_is_desired_interface_type. The latter doesn't think that IFT_PROPVIRTUAL is something desirable. I believe it's a bug, because netgraph is a generic framework, and there is no reason to not allow creation of SCTP sockets on its interfaces. For instance, I use L2TP provided by mpd5 as main internet connection. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: