sctp_uio.h (168755) | sctp_uio.h (168859) |
---|---|
1/*- 2 * Copyright (c) 2001-2007, Cisco Systems, Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are met: 6 * 7 * a) Redistributions of source code must retain the above copyright notice, 8 * this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 28 * THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31/* $KAME: sctp_uio.h,v 1.11 2005/03/06 16:04:18 itojun Exp $ */ 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001-2007, Cisco Systems, Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are met: 6 * 7 * a) Redistributions of source code must retain the above copyright notice, 8 * this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 28 * THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31/* $KAME: sctp_uio.h,v 1.11 2005/03/06 16:04:18 itojun Exp $ */ 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/netinet/sctp_uio.h 168755 2007-04-15 11:58:26Z rrs $"); | 33__FBSDID("$FreeBSD: head/sys/netinet/sctp_uio.h 168859 2007-04-19 11:28:43Z rrs $"); |
34 35#ifndef __sctp_uio_h__ 36#define __sctp_uio_h__ 37 38 39#if ! defined(_KERNEL) 40#include <stdint.h> 41#endif --- 852 unchanged lines hidden (view full) --- 894 u_long sctps_sends_with_abort; /* number of sends with ABORT flag set */ 895 u_long sctps_protocol_drain_calls; /* number of times protocol 896 * drain called */ 897 u_long sctps_protocol_drains_done; /* number of times we did a 898 * protocol drain */ 899 u_long sctps_read_peeks;/* Number of times recv was called with peek */ 900 u_long sctps_cached_chk;/* Number of cached chunks used */ 901 u_long sctps_cached_strmoq; /* Number of cached stream oq's used */ | 34 35#ifndef __sctp_uio_h__ 36#define __sctp_uio_h__ 37 38 39#if ! defined(_KERNEL) 40#include <stdint.h> 41#endif --- 852 unchanged lines hidden (view full) --- 894 u_long sctps_sends_with_abort; /* number of sends with ABORT flag set */ 895 u_long sctps_protocol_drain_calls; /* number of times protocol 896 * drain called */ 897 u_long sctps_protocol_drains_done; /* number of times we did a 898 * protocol drain */ 899 u_long sctps_read_peeks;/* Number of times recv was called with peek */ 900 u_long sctps_cached_chk;/* Number of cached chunks used */ 901 u_long sctps_cached_strmoq; /* Number of cached stream oq's used */ |
902 u_long sctps_left_abandon; /* Number of unread message abandonded 903 * by close */ |
|
902}; 903 904#define SCTP_STAT_INCR(_x) SCTP_STAT_INCR_BY(_x,1) 905#define SCTP_STAT_DECR(_x) SCTP_STAT_DECR_BY(_x,1) 906#define SCTP_STAT_INCR_BY(_x,_d) atomic_add_long(&sctpstat._x, _d) 907#define SCTP_STAT_DECR_BY(_x,_d) atomic_add_long(&sctpstat._x, -(_d)) 908/* The following macros are for handling MIB values, */ 909#define SCTP_STAT_INCR_COUNTER32(_x) SCTP_STAT_INCR(_x) --- 151 unchanged lines hidden --- | 904}; 905 906#define SCTP_STAT_INCR(_x) SCTP_STAT_INCR_BY(_x,1) 907#define SCTP_STAT_DECR(_x) SCTP_STAT_DECR_BY(_x,1) 908#define SCTP_STAT_INCR_BY(_x,_d) atomic_add_long(&sctpstat._x, _d) 909#define SCTP_STAT_DECR_BY(_x,_d) atomic_add_long(&sctpstat._x, -(_d)) 910/* The following macros are for handling MIB values, */ 911#define SCTP_STAT_INCR_COUNTER32(_x) SCTP_STAT_INCR(_x) --- 151 unchanged lines hidden --- |