sctp_pcb.c (168859) | sctp_pcb.c (168943) |
---|---|
1/*- 2 * Copyright (c) 2001-2007, 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, 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 168859 2007-04-19 11:28:43Z rrs $"); | 34__FBSDID("$FreeBSD: head/sys/netinet/sctp_pcb.c 168943 2007-04-22 11:06:27Z 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> --- 3558 unchanged lines hidden (view full) --- 3601 /* 3602 * Need to add a PD-API 3603 * aborted indication. 3604 * Setting the control_pdapi 3605 * assures that it will be 3606 * added right after this 3607 * msg. 3608 */ | 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> --- 3558 unchanged lines hidden (view full) --- 3601 /* 3602 * Need to add a PD-API 3603 * aborted indication. 3604 * Setting the control_pdapi 3605 * assures that it will be 3606 * added right after this 3607 * msg. 3608 */ |
3609 uint32_t strseq; 3610 |
|
3609 stcb->asoc.control_pdapi = sq; | 3611 stcb->asoc.control_pdapi = sq; |
3612 strseq = (sq->sinfo_stream << 16) | sq->sinfo_ssn; |
|
3610 sctp_notify_partial_delivery_indication(stcb, | 3613 sctp_notify_partial_delivery_indication(stcb, |
3611 SCTP_PARTIAL_DELIVERY_ABORTED, 1); | 3614 SCTP_PARTIAL_DELIVERY_ABORTED, 1, strseq); |
3612 stcb->asoc.control_pdapi = NULL; 3613 } 3614 } 3615 /* Add an end to wake them */ 3616 sq->end_added = 1; 3617 cnt++; 3618 } 3619 } --- 1875 unchanged lines hidden --- | 3615 stcb->asoc.control_pdapi = NULL; 3616 } 3617 } 3618 /* Add an end to wake them */ 3619 sq->end_added = 1; 3620 cnt++; 3621 } 3622 } --- 1875 unchanged lines hidden --- |