sctp_uio.h (168299) | sctp_uio.h (168709) |
---|---|
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 168299 2007-04-03 11:15:32Z rrs $"); | 33__FBSDID("$FreeBSD: head/sys/netinet/sctp_uio.h 168709 2007-04-14 09:44:09Z rrs $"); |
34 35#ifndef __sctp_uio_h__ 36#define __sctp_uio_h__ 37 38 39#if ! defined(_KERNEL) 40#include <stdint.h> 41#endif --- 825 unchanged lines hidden (view full) --- 867 u_long sctps_wu_sacks_sent; /* Window Update only sacks sent */ 868 u_long sctps_sends_with_flags; /* number of sends with sinfo_flags 869 * !=0 */ 870 u_long sctps_sends_with_unord; 871 u_long sctps_sends_with_eof; 872 u_long sctps_sends_with_abort; 873 u_long sctps_protocol_drain_calls; 874 u_long sctps_protocol_drains_done; | 34 35#ifndef __sctp_uio_h__ 36#define __sctp_uio_h__ 37 38 39#if ! defined(_KERNEL) 40#include <stdint.h> 41#endif --- 825 unchanged lines hidden (view full) --- 867 u_long sctps_wu_sacks_sent; /* Window Update only sacks sent */ 868 u_long sctps_sends_with_flags; /* number of sends with sinfo_flags 869 * !=0 */ 870 u_long sctps_sends_with_unord; 871 u_long sctps_sends_with_eof; 872 u_long sctps_sends_with_abort; 873 u_long sctps_protocol_drain_calls; 874 u_long sctps_protocol_drains_done; |
875 u_long sctps_read_peeks; |
|
875}; 876 877#define SCTP_STAT_INCR(_x) SCTP_STAT_INCR_BY(_x,1) 878#define SCTP_STAT_DECR(_x) SCTP_STAT_DECR_BY(_x,1) 879#define SCTP_STAT_INCR_BY(_x,_d) atomic_add_long(&sctpstat._x, _d) 880#define SCTP_STAT_DECR_BY(_x,_d) atomic_add_long(&sctpstat._x, -(_d)) 881/* The following macros are for handling MIB values, */ 882#define SCTP_STAT_INCR_COUNTER32(_x) SCTP_STAT_INCR(_x) --- 83 unchanged lines hidden (view full) --- 966sctp_lower_sosend(struct socket *so, 967 struct sockaddr *addr, 968 struct uio *uio, 969 970 struct mbuf *top, 971 struct mbuf *control, 972 int flags, 973 int use_rcvinfo, | 876}; 877 878#define SCTP_STAT_INCR(_x) SCTP_STAT_INCR_BY(_x,1) 879#define SCTP_STAT_DECR(_x) SCTP_STAT_DECR_BY(_x,1) 880#define SCTP_STAT_INCR_BY(_x,_d) atomic_add_long(&sctpstat._x, _d) 881#define SCTP_STAT_DECR_BY(_x,_d) atomic_add_long(&sctpstat._x, -(_d)) 882/* The following macros are for handling MIB values, */ 883#define SCTP_STAT_INCR_COUNTER32(_x) SCTP_STAT_INCR(_x) --- 83 unchanged lines hidden (view full) --- 967sctp_lower_sosend(struct socket *so, 968 struct sockaddr *addr, 969 struct uio *uio, 970 971 struct mbuf *top, 972 struct mbuf *control, 973 int flags, 974 int use_rcvinfo, |
974 struct sctp_sndrcvinfo *srcv, 975 struct thread *p | 975 struct sctp_sndrcvinfo *srcv 976 ,struct thread *p |
976); 977 978int 979sctp_sorecvmsg(struct socket *so, 980 struct uio *uio, 981 struct mbuf **mp, 982 struct sockaddr *from, 983 int fromlen, --- 50 unchanged lines hidden --- | 977); 978 979int 980sctp_sorecvmsg(struct socket *so, 981 struct uio *uio, 982 struct mbuf **mp, 983 struct sockaddr *from, 984 int fromlen, --- 50 unchanged lines hidden --- |