Deleted Added
full compact
sctputil.c (172437) sctputil.c (172568)
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.

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

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: sctputil.c,v 1.37 2005/03/07 23:26:09 itojun Exp $ */
32
33#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.

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

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: sctputil.c,v 1.37 2005/03/07 23:26:09 itojun Exp $ */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/netinet/sctputil.c 172437 2007-10-04 09:29:33Z rrs $");
34__FBSDID("$FreeBSD: head/sys/netinet/sctputil.c 172568 2007-10-12 06:03:46Z kevlo $");
35
36#include <netinet/sctp_os.h>
37#include <netinet/sctp_pcb.h>
38#include <netinet/sctputil.h>
39#include <netinet/sctp_var.h>
40#include <netinet/sctp_sysctl.h>
41#ifdef INET6
42#include <netinet6/sctp6_var.h>

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

5570 sctp_m_freem(control->data);
5571 control->data = NULL;
5572#endif
5573 }
5574 done_with_control:
5575 if (TAILQ_NEXT(control, next) == NULL) {
5576 /*
5577 * If we don't have a next we need a
35
36#include <netinet/sctp_os.h>
37#include <netinet/sctp_pcb.h>
38#include <netinet/sctputil.h>
39#include <netinet/sctp_var.h>
40#include <netinet/sctp_sysctl.h>
41#ifdef INET6
42#include <netinet6/sctp6_var.h>

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

5570 sctp_m_freem(control->data);
5571 control->data = NULL;
5572#endif
5573 }
5574 done_with_control:
5575 if (TAILQ_NEXT(control, next) == NULL) {
5576 /*
5577 * If we don't have a next we need a
5578 * lock, if there is a next interupt
5578 * lock, if there is a next interrupt
5579 * is filling ahead of us and we
5580 * don't need a lock to remove this
5581 * guy (which is the head of the
5582 * queue).
5583 */
5584 if (hold_rlock == 0) {
5585 SCTP_INP_READ_LOCK(inp);
5586 hold_rlock = 1;

--- 916 unchanged lines hidden ---
5579 * is filling ahead of us and we
5580 * don't need a lock to remove this
5581 * guy (which is the head of the
5582 * queue).
5583 */
5584 if (hold_rlock == 0) {
5585 SCTP_INP_READ_LOCK(inp);
5586 hold_rlock = 1;

--- 916 unchanged lines hidden ---