Deleted Added
full compact
sctputil.h (270352) sctputil.h (270354)
1/*-
2 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved.
3 * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved.
4 * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *

--- 17 unchanged lines hidden (view full) ---

26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved.
3 * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved.
4 * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *

--- 17 unchanged lines hidden (view full) ---

26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: stable/10/sys/netinet/sctputil.h 270352 2014-08-22 19:43:27Z tuexen $");
34__FBSDID("$FreeBSD: stable/10/sys/netinet/sctputil.h 270354 2014-08-22 19:49:43Z tuexen $");
35
36#ifndef _NETINET_SCTP_UTIL_H_
37#define _NETINET_SCTP_UTIL_H_
38
39#if defined(_KERNEL) || defined(__Userspace__)
40
41#define SCTP_READ_LOCK_HELD 1
42#define SCTP_READ_LOCK_NOT_HELD 0

--- 99 unchanged lines hidden (view full) ---

142uint32_t sctp_calculate_len(struct mbuf *);
143
144caddr_t sctp_m_getptr(struct mbuf *, int, int, uint8_t *);
145
146struct sctp_paramhdr *
147sctp_get_next_param(struct mbuf *, int,
148 struct sctp_paramhdr *, int);
149
35
36#ifndef _NETINET_SCTP_UTIL_H_
37#define _NETINET_SCTP_UTIL_H_
38
39#if defined(_KERNEL) || defined(__Userspace__)
40
41#define SCTP_READ_LOCK_HELD 1
42#define SCTP_READ_LOCK_NOT_HELD 0

--- 99 unchanged lines hidden (view full) ---

142uint32_t sctp_calculate_len(struct mbuf *);
143
144caddr_t sctp_m_getptr(struct mbuf *, int, int, uint8_t *);
145
146struct sctp_paramhdr *
147sctp_get_next_param(struct mbuf *, int,
148 struct sctp_paramhdr *, int);
149
150int sctp_add_pad_tombuf(struct mbuf *, int);
150struct mbuf *
151 sctp_add_pad_tombuf(struct mbuf *, int);
151
152
152int sctp_pad_lastmbuf(struct mbuf *, int, struct mbuf *);
153struct mbuf *
154 sctp_pad_lastmbuf(struct mbuf *, int, struct mbuf *);
153
154void
155sctp_ulp_notify(uint32_t, struct sctp_tcb *, uint32_t, void *, int
156#if !defined(__APPLE__) && !defined(SCTP_SO_LOCK_TESTING)
157 SCTP_UNUSED
158#endif
159);
160

--- 228 unchanged lines hidden ---
155
156void
157sctp_ulp_notify(uint32_t, struct sctp_tcb *, uint32_t, void *, int
158#if !defined(__APPLE__) && !defined(SCTP_SO_LOCK_TESTING)
159 SCTP_UNUSED
160#endif
161);
162

--- 228 unchanged lines hidden ---