From owner-p4-projects@FreeBSD.ORG Mon Jun 29 09:16:09 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id ED90A1065678; Mon, 29 Jun 2009 09:16:08 +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 AD2D11065673 for ; Mon, 29 Jun 2009 09:16:08 +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 9B58B8FC0A for ; Mon, 29 Jun 2009 09:16:08 +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 n5T9G85A090050 for ; Mon, 29 Jun 2009 09:16:08 GMT (envelope-from pgj@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n5T9G8CY090048 for perforce@freebsd.org; Mon, 29 Jun 2009 09:16:08 GMT (envelope-from pgj@FreeBSD.org) Date: Mon, 29 Jun 2009 09:16:08 GMT Message-Id: <200906290916.n5T9G8CY090048@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 165375 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: Mon, 29 Jun 2009 09:16:10 -0000 http://perforce.freebsd.org/chv.cgi?CH=165375 Change 165375 by pgj@petymeg-current on 2009/06/29 09:15:43 Add an initial version of stream structures for inet connections. Affected files ... .. //depot/projects/soc2009/pgj_libstat/src/sys/netinet/in_pcb.h#3 edit Differences ... ==== //depot/projects/soc2009/pgj_libstat/src/sys/netinet/in_pcb.h#3 (text+ko) ==== @@ -253,6 +253,50 @@ }; #endif /* _SYS_SOCKETVAR_H_ */ +/* + * Statistics structures for user space monitoring tools. + */ + +#define INPCB_STREAM_VERSION 0x00000001 + +struct inpcb_stream { + u_int32_t is_version; + u_int32_t is_count; + u_int64_t is_gencnt; +}; + +struct inpcb_data { + u_int64_t id_gencnt; + u_int16_t id_qlen; + u_int16_t id_incqlen; + u_int16_t id_qlimit; + u_int32_t id_snd_cc; + u_int32_t id_snd_mcnt; + u_int32_t id_snd_ccnt; + u_int32_t id_snd_hiwat; + u_int32_t id_snd_lowat; + u_int32_t id_snd_mbcnt; + u_int32_t id_snd_mbmax; + u_int32_t id_rcv_cc; + u_int32_t id_rcv_mcnt; + u_int32_t id_rcv_ccnt; + u_int32_t id_rcv_hiwat; + u_int32_t id_rcv_lowat; + u_int32_t id_rcv_mbcnt; + u_int32_t id_rcv_mbmax; + u_int64_t id_pcb; + u_int16_t id_protocol; + u_int8_t id_state; + u_int16_t id_flags; + u_int8_t id_vflag; + u_int16_t id_lport; + u_int16_t id_fport; + u_int8_t id_laddr[16]; + u_int8_t id_faddr[16]; + u_int8_t _id_pad[8]; +}; + + struct inpcbport { LIST_ENTRY(inpcbport) phd_hash; struct inpcbhead phd_pcblist;