Deleted Added
full compact
sctputil.h (188067) sctputil.h (189790)
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.

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

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
32/* $KAME: sctputil.h,v 1.15 2005/03/06 16:04:19 itojun Exp $ */
33
34#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.

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

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
32/* $KAME: sctputil.h,v 1.15 2005/03/06 16:04:19 itojun Exp $ */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/netinet/sctputil.h 188067 2009-02-03 11:04:03Z rrs $");
35__FBSDID("$FreeBSD: head/sys/netinet/sctputil.h 189790 2009-03-14 13:42:13Z rrs $");
36#ifndef __sctputil_h__
37#define __sctputil_h__
38
39
40#if defined(_KERNEL) || defined(__Userspace__)
41
42
43#ifdef SCTP_ASOCLOG_OF_TSNS

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

232void sctp_print_address_pkt(struct ip *, struct sctphdr *);
233
234void
235sctp_notify_partial_delivery_indication(struct sctp_tcb *stcb,
236 uint32_t error, int no_lock, uint32_t strseq);
237
238int
239sctp_release_pr_sctp_chunk(struct sctp_tcb *, struct sctp_tmit_chunk *,
36#ifndef __sctputil_h__
37#define __sctputil_h__
38
39
40#if defined(_KERNEL) || defined(__Userspace__)
41
42
43#ifdef SCTP_ASOCLOG_OF_TSNS

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

232void sctp_print_address_pkt(struct ip *, struct sctphdr *);
233
234void
235sctp_notify_partial_delivery_indication(struct sctp_tcb *stcb,
236 uint32_t error, int no_lock, uint32_t strseq);
237
238int
239sctp_release_pr_sctp_chunk(struct sctp_tcb *, struct sctp_tmit_chunk *,
240 int, struct sctpchunk_listhead *, int
240 int, int
241#if !defined(__APPLE__) && !defined(SCTP_SO_LOCK_TESTING)
242 SCTP_UNUSED
243#endif
244);
245
246struct mbuf *sctp_generate_invmanparam(int);
247
248void

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

282 } \
283} while (0)
284
285#endif
286
287#define sctp_free_spbufspace(stcb, asoc, sp) \
288do { \
289 if (sp->data != NULL) { \
241#if !defined(__APPLE__) && !defined(SCTP_SO_LOCK_TESTING)
242 SCTP_UNUSED
243#endif
244);
245
246struct mbuf *sctp_generate_invmanparam(int);
247
248void

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

282 } \
283} while (0)
284
285#endif
286
287#define sctp_free_spbufspace(stcb, asoc, sp) \
288do { \
289 if (sp->data != NULL) { \
290 atomic_subtract_int(&(asoc)->chunks_on_out_queue, 1); \
291 if ((asoc)->total_output_queue_size >= sp->length) { \
292 atomic_subtract_int(&(asoc)->total_output_queue_size, sp->length); \
293 } else { \
294 (asoc)->total_output_queue_size = 0; \
295 } \
296 if (stcb->sctp_socket && ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) || \
297 (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL))) { \
298 if (stcb->sctp_socket->so_snd.sb_cc >= sp->length) { \

--- 97 unchanged lines hidden ---
290 if ((asoc)->total_output_queue_size >= sp->length) { \
291 atomic_subtract_int(&(asoc)->total_output_queue_size, sp->length); \
292 } else { \
293 (asoc)->total_output_queue_size = 0; \
294 } \
295 if (stcb->sctp_socket && ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) || \
296 (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL))) { \
297 if (stcb->sctp_socket->so_snd.sb_cc >= sp->length) { \

--- 97 unchanged lines hidden ---