sctp_output.c (172396) | sctp_output.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: sctp_output.c,v 1.46 2005/03/06 16:04:17 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_output.c,v 1.46 2005/03/06 16:04:17 itojun Exp $ */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/netinet/sctp_output.c 172396 2007-10-01 03:22:29Z rrs $"); | 34__FBSDID("$FreeBSD: head/sys/netinet/sctp_output.c 172568 2007-10-12 06:03:46Z kevlo $"); |
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_header.h> 41#include <netinet/sctp_pcb.h> 42#include <netinet/sctputil.h> --- 11645 unchanged lines hidden (view full) --- 11688 } 11689 SCTP_TCB_SEND_LOCK(stcb); 11690 if (sp->msg_is_complete) { 11691 strm->last_msg_incomplete = 0; 11692 asoc->stream_locked = 0; 11693 } else { 11694 /* 11695 * Just got locked to this guy in case of an | 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_header.h> 41#include <netinet/sctp_pcb.h> 42#include <netinet/sctputil.h> --- 11645 unchanged lines hidden (view full) --- 11688 } 11689 SCTP_TCB_SEND_LOCK(stcb); 11690 if (sp->msg_is_complete) { 11691 strm->last_msg_incomplete = 0; 11692 asoc->stream_locked = 0; 11693 } else { 11694 /* 11695 * Just got locked to this guy in case of an |
11696 * interupt. | 11696 * interrupt. |
11697 */ 11698 strm->last_msg_incomplete = 1; 11699 asoc->stream_locked = 1; 11700 asoc->stream_locked_on = srcv->sinfo_stream; 11701 sp->sender_all_done = 0; 11702 } 11703 sctp_snd_sb_alloc(stcb, sp->length); 11704 atomic_add_int(&asoc->stream_queue_cnt, 1); --- 697 unchanged lines hidden --- | 11697 */ 11698 strm->last_msg_incomplete = 1; 11699 asoc->stream_locked = 1; 11700 asoc->stream_locked_on = srcv->sinfo_stream; 11701 sp->sender_all_done = 0; 11702 } 11703 sctp_snd_sb_alloc(stcb, sp->length); 11704 atomic_add_int(&asoc->stream_queue_cnt, 1); --- 697 unchanged lines hidden --- |