Date: Wed, 29 Jul 2009 02:02:29 GMT From: Gabor Pali <pgj@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 166713 for review Message-ID: <200907290202.n6T22Tun078343@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=166713 Change 166713 by pgj@petymeg-current on 2009/07/29 02:02:05 Add header for SCTP statistics. Affected files ... .. //depot/projects/soc2009/pgj_libstat/src/sys/netinet/sctp_sysctl.c#2 edit .. //depot/projects/soc2009/pgj_libstat/src/sys/netinet/sctp_uio.h#3 edit Differences ... ==== //depot/projects/soc2009/pgj_libstat/src/sys/netinet/sctp_sysctl.c#2 (text+ko) ==== @@ -926,6 +926,15 @@ &SCTP_BASE_STATS, sctpstat, "SCTP statistics (struct sctp_stat)"); +struct stat_header sctpstat_header = { + .sth_version = SCTPSTAT_VERSION, + .sth_len = sizeof(SCTP_BASE_STATS) +}; + +SYSCTL_STRUCT(_net_inet_sctp, OID_AUTO, stats_header, CTLFLAG_RD, + &sctpstat_header, stat_header, + "SCTP statistics header"); + SYSCTL_PROC(_net_inet_sctp, OID_AUTO, assoclist, CTLFLAG_RD, 0, 0, sctp_assoclist, "S,xassoc", "List of active SCTP associations"); ==== //depot/projects/soc2009/pgj_libstat/src/sys/netinet/sctp_uio.h#3 (text+ko) ==== @@ -763,6 +763,8 @@ uint32_t tv_usec; }; +#define SCTPSTAT_VERSION 0x00000001 + struct sctpstat { struct sctp_timeval sctps_discontinuitytime; /* sctpStats 18 * (TimeStamp) */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907290202.n6T22Tun078343>