Date: Fri, 17 Sep 2010 13:18:07 +0300 (EEST) From: Valentin Nechayev <netch@netch.kiev.ua> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/150642: netstat doesn't print anything for SCTP sockets Message-ID: <201009171018.o8HAI7QC071063@segfault.kiev.ua> Resent-Message-ID: <201009171040.o8HAe2cg010786@freefall.freebsd.org>
index | next in thread | raw e-mail
>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:
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009171018.o8HAI7QC071063>
