sctp_uio.h (179783) | sctp_uio.h (180387) |
---|---|
1/*- 2 * Copyright (c) 2001-2007, by 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, by 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 179783 2008-06-14 07:58:05Z rrs $"); | 33__FBSDID("$FreeBSD: head/sys/netinet/sctp_uio.h 180387 2008-07-09 16:45:30Z rrs $"); |
34 35#ifndef __sctp_uio_h__ 36#define __sctp_uio_h__ 37 38 39#if ! defined(_KERNEL) 40#include <stdint.h> 41#endif --- 990 unchanged lines hidden (view full) --- 1032 struct sctp_log_entry entry[SCTP_MAX_LOGGING_SIZE]; 1033 uint32_t index; 1034 uint32_t padding; 1035}; 1036 1037/* 1038 * Kernel defined for sctp_send 1039 */ | 34 35#ifndef __sctp_uio_h__ 36#define __sctp_uio_h__ 37 38 39#if ! defined(_KERNEL) 40#include <stdint.h> 41#endif --- 990 unchanged lines hidden (view full) --- 1032 struct sctp_log_entry entry[SCTP_MAX_LOGGING_SIZE]; 1033 uint32_t index; 1034 uint32_t padding; 1035}; 1036 1037/* 1038 * Kernel defined for sctp_send 1039 */ |
1040#if defined(_KERNEL) | 1040#if defined(_KERNEL) || defined(__Userspace__) |
1041int 1042sctp_lower_sosend(struct socket *so, 1043 struct sockaddr *addr, 1044 struct uio *uio, 1045 struct mbuf *i_pak, 1046 struct mbuf *control, 1047 int flags, 1048 int use_rcvinfo, --- 11 unchanged lines hidden (view full) --- 1060 struct sctp_sndrcvinfo *sinfo, 1061 int filling_sinfo); 1062 1063#endif 1064 1065/* 1066 * API system calls 1067 */ | 1041int 1042sctp_lower_sosend(struct socket *so, 1043 struct sockaddr *addr, 1044 struct uio *uio, 1045 struct mbuf *i_pak, 1046 struct mbuf *control, 1047 int flags, 1048 int use_rcvinfo, --- 11 unchanged lines hidden (view full) --- 1060 struct sctp_sndrcvinfo *sinfo, 1061 int filling_sinfo); 1062 1063#endif 1064 1065/* 1066 * API system calls 1067 */ |
1068#if !(defined(_KERNEL)) | 1068#if !(defined(_KERNEL)) && !(defined(__Userspace__)) |
1069 1070__BEGIN_DECLS 1071int sctp_peeloff __P((int, sctp_assoc_t)); 1072int sctp_bindx __P((int, struct sockaddr *, int, int)); 1073int sctp_connectx __P((int, const struct sockaddr *, int, sctp_assoc_t *)); 1074int sctp_getaddrlen __P((sa_family_t)); 1075int sctp_getpaddrs __P((int, sctp_assoc_t, struct sockaddr **)); 1076void sctp_freepaddrs __P((struct sockaddr *)); --- 29 unchanged lines hidden --- | 1069 1070__BEGIN_DECLS 1071int sctp_peeloff __P((int, sctp_assoc_t)); 1072int sctp_bindx __P((int, struct sockaddr *, int, int)); 1073int sctp_connectx __P((int, const struct sockaddr *, int, sctp_assoc_t *)); 1074int sctp_getaddrlen __P((sa_family_t)); 1075int sctp_getpaddrs __P((int, sctp_assoc_t, struct sockaddr **)); 1076void sctp_freepaddrs __P((struct sockaddr *)); --- 29 unchanged lines hidden --- |