sctputil.c (171032) | sctputil.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: 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 171032 2007-06-25 19:05:26Z rrs $"); | 34__FBSDID("$FreeBSD: head/sys/netinet/sctputil.c 171158 2007-07-02 19:22:22Z rrs $"); |
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> --- 3402 unchanged lines hidden (view full) --- 3445 } 3446 sctp_free_bufspace(stcb, asoc, chk, 1); 3447 sctp_ulp_notify(SCTP_NOTIFY_DG_FAIL, stcb, 3448 SCTP_NOTIFY_DATAGRAM_SENT, chk); 3449 if (chk->data) { 3450 sctp_m_freem(chk->data); 3451 chk->data = NULL; 3452 } | 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> --- 3402 unchanged lines hidden (view full) --- 3445 } 3446 sctp_free_bufspace(stcb, asoc, chk, 1); 3447 sctp_ulp_notify(SCTP_NOTIFY_DG_FAIL, stcb, 3448 SCTP_NOTIFY_DATAGRAM_SENT, chk); 3449 if (chk->data) { 3450 sctp_m_freem(chk->data); 3451 chk->data = NULL; 3452 } |
3453 if (chk->whoTo) 3454 sctp_free_remote_addr(chk->whoTo); 3455 chk->whoTo = NULL; | |
3456 sctp_free_a_chunk(stcb, chk); 3457 /* sa_ignore FREED_MEMORY */ 3458 chk = TAILQ_FIRST(&asoc->sent_queue); 3459 } 3460 } 3461 /* pending send queue SHOULD be empty */ 3462 if (!TAILQ_EMPTY(&asoc->send_queue)) { 3463 chk = TAILQ_FIRST(&asoc->send_queue); --- 12 unchanged lines hidden (view full) --- 3476 } 3477 } 3478 sctp_free_bufspace(stcb, asoc, chk, 1); 3479 sctp_ulp_notify(SCTP_NOTIFY_DG_FAIL, stcb, SCTP_NOTIFY_DATAGRAM_UNSENT, chk); 3480 if (chk->data) { 3481 sctp_m_freem(chk->data); 3482 chk->data = NULL; 3483 } | 3453 sctp_free_a_chunk(stcb, chk); 3454 /* sa_ignore FREED_MEMORY */ 3455 chk = TAILQ_FIRST(&asoc->sent_queue); 3456 } 3457 } 3458 /* pending send queue SHOULD be empty */ 3459 if (!TAILQ_EMPTY(&asoc->send_queue)) { 3460 chk = TAILQ_FIRST(&asoc->send_queue); --- 12 unchanged lines hidden (view full) --- 3473 } 3474 } 3475 sctp_free_bufspace(stcb, asoc, chk, 1); 3476 sctp_ulp_notify(SCTP_NOTIFY_DG_FAIL, stcb, SCTP_NOTIFY_DATAGRAM_UNSENT, chk); 3477 if (chk->data) { 3478 sctp_m_freem(chk->data); 3479 chk->data = NULL; 3480 } |
3484 if (chk->whoTo) 3485 sctp_free_remote_addr(chk->whoTo); 3486 chk->whoTo = NULL; | |
3487 sctp_free_a_chunk(stcb, chk); 3488 /* sa_ignore FREED_MEMORY */ 3489 chk = TAILQ_FIRST(&asoc->send_queue); 3490 } 3491 } 3492 for (i = 0; i < stcb->asoc.streamoutcnt; i++) { 3493 /* For each stream */ 3494 outs = &stcb->asoc.strmout[i]; --- 2452 unchanged lines hidden --- | 3481 sctp_free_a_chunk(stcb, chk); 3482 /* sa_ignore FREED_MEMORY */ 3483 chk = TAILQ_FIRST(&asoc->send_queue); 3484 } 3485 } 3486 for (i = 0; i < stcb->asoc.streamoutcnt; i++) { 3487 /* For each stream */ 3488 outs = &stcb->asoc.strmout[i]; --- 2452 unchanged lines hidden --- |