From owner-freebsd-bugs@FreeBSD.ORG Fri Sep 17 10:40:03 2010 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 525D61065670 for ; Fri, 17 Sep 2010 10:40:03 +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 E68728FC17 for ; Fri, 17 Sep 2010 10:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o8HAe27q010787 for ; Fri, 17 Sep 2010 10:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o8HAe2cg010786; Fri, 17 Sep 2010 10:40:02 GMT (envelope-from gnats) Resent-Date: Fri, 17 Sep 2010 10:40:02 GMT Resent-Message-Id: <201009171040.o8HAe2cg010786@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, Valentin Nechayev Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD51F1065670 for ; Fri, 17 Sep 2010 10:30:52 +0000 (UTC) (envelope-from netch@segfault.kiev.ua) Received: from segfault.kiev.ua (segfault.kiev.ua [193.193.193.4]) by mx1.freebsd.org (Postfix) with ESMTP id 337818FC1A for ; Fri, 17 Sep 2010 10:30:51 +0000 (UTC) Received: from segfault.kiev.ua (localhost.segfault.kiev.ua [127.0.0.1]) by segfault.kiev.ua (8.14.4/8.14.4/8.Who.Cares) with ESMTP id o8HAICes071066; Fri, 17 Sep 2010 13:18:12 +0300 (EEST) (envelope-from netch@segfault.kiev.ua) Received: (from netch@localhost) by segfault.kiev.ua (8.14.4/8.14.4/Submit) id o8HAI7QC071063; Fri, 17 Sep 2010 13:18:07 +0300 (EEST) (envelope-from netch) Message-Id: <201009171018.o8HAI7QC071063@segfault.kiev.ua> Date: Fri, 17 Sep 2010 13:18:07 +0300 (EEST) From: Valentin Nechayev To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/150642: netstat doesn't print anything for SCTP sockets X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Valentin Nechayev List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2010 10:40:03 -0000 >Number: 150642 >Category: bin >Synopsis: netstat doesn't print anything for SCTP sockets >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 17 10:40:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Valentin Nechayev >Release: FreeBSD 8.1-RELEASE i386 >Organization: Dark side of coredump >Environment: System: FreeBSD segfault.kiev.ua 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Tue Jul 27 16:32:08 EEST 2010 root@segfault.kiev.ua:/usr/BSD/obj/usr/BSD/src/sys/sf81 i386 I was also told that the same on 7.2 and 9.0, so this is old problem. >Description: netstat (with mode to print sockets, either with or without -a) doesn't print anything for active SCTP sockets. >How-To-Repeat: I use Python to line-by-line show though the same result is when using C. Check before starting with socket: $ fstat | fgrep sctp; netstat -anAW -p sctp; netstat -anAW | grep sctp $ $ sysctl -b net.inet.sctp.assoclist | hd | less 00000000 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000000a0 Create socket: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 132) Check in other terminal: $ fstat | fgrep sctp; netstat -anAW -p sctp; netstat -anAW | grep sctp netch python 70548 3* internet stream sctp c58ada14 $ $ sysctl -b net.inet.sctp.assoclist | hd | less 00000000 00 00 00 00 12 00 00 00 08 00 00 00 00 00 00 00 |................| 00000010 00 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 00 |........ÿÿ......| 00000020 00 00 dd c4 f8 18 83 e7 f7 26 84 c0 10 19 83 e7 |..ÝÄø.ƒç÷&„À..ƒç| [...skip rest - the only thing I shall demonstrate here there is new data] Binding of the socket changes nothing in the fact of netstat output absense itself. >Fix: >Release-Note: >Audit-Trail: >Unformatted: