From owner-p4-projects@FreeBSD.ORG Wed Jul 29 02:02:30 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D99F21065673; Wed, 29 Jul 2009 02:02:29 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9971E106564A for ; Wed, 29 Jul 2009 02:02:29 +0000 (UTC) (envelope-from pgj@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 880C98FC12 for ; Wed, 29 Jul 2009 02:02:29 +0000 (UTC) (envelope-from pgj@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n6T22T9F078345 for ; Wed, 29 Jul 2009 02:02:29 GMT (envelope-from pgj@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n6T22Tun078343 for perforce@freebsd.org; Wed, 29 Jul 2009 02:02:29 GMT (envelope-from pgj@FreeBSD.org) Date: Wed, 29 Jul 2009 02:02:29 GMT Message-Id: <200907290202.n6T22Tun078343@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to pgj@FreeBSD.org using -f From: Gabor Pali To: Perforce Change Reviews Cc: Subject: PERFORCE change 166713 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jul 2009 02:02:31 -0000 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) */