Deleted Added
full compact
sctp_pcb.c (171133) sctp_pcb.c (171158)
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: sctp_pcb.c,v 1.38 2005/03/06 16:04:18 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: sctp_pcb.c,v 1.38 2005/03/06 16:04:18 itojun Exp $ */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/netinet/sctp_pcb.c 171133 2007-07-01 11:41:27Z gnn $");
34__FBSDID("$FreeBSD: head/sys/netinet/sctp_pcb.c 171158 2007-07-02 19:22:22Z rrs $");
35
36#include <netinet/sctp_os.h>
37#include <sys/proc.h>
38#include <netinet/sctp_var.h>
39#include <netinet/sctp_sysctl.h>
40#include <netinet/sctp_pcb.h>
41#include <netinet/sctputil.h>
42#include <netinet/sctp.h>

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

5467 asoc->size_on_reasm_queue = sctp_sbspace_sub(asoc->size_on_reasm_queue, chk->send_size);
5468 sctp_ucount_decr(asoc->cnt_on_reasm_queue);
5469 SCTP_UNSET_TSN_PRESENT(asoc->mapping_array, gap);
5470 TAILQ_REMOVE(&asoc->reasmqueue, chk, sctp_next);
5471 if (chk->data) {
5472 sctp_m_freem(chk->data);
5473 chk->data = NULL;
5474 }
35
36#include <netinet/sctp_os.h>
37#include <sys/proc.h>
38#include <netinet/sctp_var.h>
39#include <netinet/sctp_sysctl.h>
40#include <netinet/sctp_pcb.h>
41#include <netinet/sctputil.h>
42#include <netinet/sctp.h>

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

5467 asoc->size_on_reasm_queue = sctp_sbspace_sub(asoc->size_on_reasm_queue, chk->send_size);
5468 sctp_ucount_decr(asoc->cnt_on_reasm_queue);
5469 SCTP_UNSET_TSN_PRESENT(asoc->mapping_array, gap);
5470 TAILQ_REMOVE(&asoc->reasmqueue, chk, sctp_next);
5471 if (chk->data) {
5472 sctp_m_freem(chk->data);
5473 chk->data = NULL;
5474 }
5475 sctp_free_remote_addr(chk->whoTo);
5476 sctp_free_a_chunk(stcb, chk);
5477 }
5478 chk = nchk;
5479 }
5480 /* Ok that was fun, now we will drain all the inbound streams? */
5481 for (strmat = 0; strmat < asoc->streamincnt; strmat++) {
5482 ctl = TAILQ_FIRST(&asoc->strmin[strmat].inqueue);
5483 while (ctl) {

--- 214 unchanged lines hidden ---
5475 sctp_free_a_chunk(stcb, chk);
5476 }
5477 chk = nchk;
5478 }
5479 /* Ok that was fun, now we will drain all the inbound streams? */
5480 for (strmat = 0; strmat < asoc->streamincnt; strmat++) {
5481 ctl = TAILQ_FIRST(&asoc->strmin[strmat].inqueue);
5482 while (ctl) {

--- 214 unchanged lines hidden ---