PERFORCE change 166713 for review

Gabor Pali pgj at FreeBSD.org
Wed Jul 29 02:02:31 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=166713

Change 166713 by pgj at 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) */


More information about the p4-projects mailing list