[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
netstat patch..
- To: net_(_at_)_freebsd_(_dot_)_org
- Subject: netstat patch..
- From: Randall Stewart <rrs_(_at_)_cisco_(_dot_)_com>
- Date: Tue, 05 Jun 2007 13:56:10 -0400
- Authentication-results: sj-dkim-3; header_(_dot_)_From=rrs_(_at_)_cisco_(_dot_)_com; dkim=pass (sig from cisco.com/sjdkim3002 verified; );
- Cc:
- 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_(_at_)_cisco_(_dot_)_com; z=From:=20Randall=20Stewart=20<rrs_(_at_)_cisco_(_dot_)_com> |Subject:=20netstat=20patch.. |Sender:=20; bh=npBp+Vpv4r16lfi91AB2Asra71w8scT+NnjiTALv6Xw=; b=edcNVufqispWanGfujN1NMAfbxA0rsLD9s0DlHTVEF11KcDLDe7MnzfgGLM+0ujY6LKMo0Ok cz7y+SzackF2RMZ4hmNB9urkwvRoDd2DZdSXrWw/fDJynb8p4cq9GCmP;
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 <or> 803-317-4952 (cell)
? 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
_______________________________________________
freebsd-net_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe_(_at_)_freebsd_(_dot_)_org"
Visit your host, monkey.org