From owner-freebsd-net@FreeBSD.ORG Tue Jun 5 18:23:27 2007 Return-Path: X-Original-To: net@freebsd.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BDA2116A400 for ; Tue, 5 Jun 2007 18:23:27 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-1.cisco.com (sj-iport-1-in.cisco.com [171.71.176.70]) by mx1.freebsd.org (Postfix) with ESMTP id 9556913C465 for ; Tue, 5 Jun 2007 18:23:27 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-dkim-3.cisco.com ([171.71.179.195]) by sj-iport-1.cisco.com with ESMTP; 05 Jun 2007 10:55:04 -0700 X-IronPort-AV: i="4.16,386,1175497200"; d="diff'?c'?scan'208"; a="1779920:sNHT49384824" Received: from sj-core-2.cisco.com (sj-core-2.cisco.com [171.71.177.254]) by sj-dkim-3.cisco.com (8.12.11/8.12.11) with ESMTP id l55Ht4S6015135 for ; Tue, 5 Jun 2007 10:55:04 -0700 Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by sj-core-2.cisco.com (8.12.10/8.12.6) with ESMTP id l55Ht4aK013598 for ; Tue, 5 Jun 2007 17:55:04 GMT Received: from xfe-sjc-212.amer.cisco.com ([171.70.151.187]) by xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 5 Jun 2007 10:54:14 -0700 Received: from [127.0.0.1] ([171.68.225.134]) by xfe-sjc-212.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 5 Jun 2007 10:54:13 -0700 Message-ID: <4665A3BA.7030307@cisco.com> Date: Tue, 05 Jun 2007 13:56:10 -0400 From: Randall Stewart User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20070601 X-Accept-Language: en-us, en MIME-Version: 1.0 To: net@freebsd.org Content-Type: multipart/mixed; boundary="------------090507010906000109090406" X-OriginalArrivalTime: 05 Jun 2007 17:54:14.0241 (UTC) FILETIME=[876FED10:01C7A79A] DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=24413; t=1181066104; x=1181930104; c=relaxed/simple; s=sjdkim3002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=rrs@cisco.com; z=From:=20Randall=20Stewart=20 |Subject:=20netstat=20patch.. |Sender:=20; bh=npBp+Vpv4r16lfi91AB2Asra71w8scT+NnjiTALv6Xw=; b=edcNVufqispWanGfujN1NMAfbxA0rsLD9s0DlHTVEF11KcDLDe7MnzfgGLM+0ujY6LKMo0Ok cz7y+SzackF2RMZ4hmNB9urkwvRoDd2DZdSXrWw/fDJynb8p4cq9GCmP; Authentication-Results: sj-dkim-3; header.From=rrs@cisco.com; dkim=pass (sig from cisco.com/sjdkim3002 verified; ); X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: netstat patch.. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 18:23:27 -0000 This is a multi-part message in MIME format. --------------090507010906000109090406 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit All: Weongyo Jeong sent me a nice netstat patch that allows netstat access to SCTP stuff :-D I attach the patch and ask your comments... He did report a couple of Witness warnings (which I have fixed.. but this was an SCTP issue :-D).. I will commit the witness fix shortly.. But what do you think of me adding this to netstat? Comments would be appreciated ;-) R -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 803-317-4952 (cell) --------------090507010906000109090406 Content-Type: text/x-patch; name="netstat_patch_for_SCTP_20070603.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="netstat_patch_for_SCTP_20070603.diff" ? sctp.c Index: Makefile =================================================================== RCS file: /data/cvs/src/usr.bin/netstat/Makefile,v retrieving revision 1.35 diff -r1.35 Makefile 8c8 < unix.c atalk.c netgraph.c mroute6.c ipsec.c bpf.c pfkey.c --- > unix.c atalk.c netgraph.c mroute6.c ipsec.c bpf.c pfkey.c sctp.c 13a14 > CFLAGS+=-DSCTP Index: main.c =================================================================== RCS file: /data/cvs/src/usr.bin/netstat/main.c,v retrieving revision 1.83 diff -r1.83 main.c 170a171,174 > #ifdef SCTP > { -1, -1, 1, sctp_protopr, > sctp_stats, NULL, "sctp", IPPROTO_SCTP }, > #endif Index: netstat.h =================================================================== RCS file: /data/cvs/src/usr.bin/netstat/netstat.h,v retrieving revision 1.48 diff -r1.48 netstat.h 70a71,74 > #ifdef SCTP > void sctp_protopr(u_long, const char *, int); > void sctp_stats(u_long, const char *, int); > #endif --------------090507010906000109090406--