sctp_pcb.c (235077) | sctp_pcb.c (235360) |
---|---|
1/*- 2 * Copyright (c) 2001-2008, by Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2008-2011, by Randall Stewart. All rights reserved. 4 * Copyright (c) 2008-2011, by Michael Tuexen. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are met: 8 * --- 19 unchanged lines hidden (view full) --- 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33/* $KAME: sctp_pcb.c,v 1.38 2005/03/06 16:04:18 itojun Exp $ */ 34 35#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001-2008, by Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2008-2011, by Randall Stewart. All rights reserved. 4 * Copyright (c) 2008-2011, by Michael Tuexen. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are met: 8 * --- 19 unchanged lines hidden (view full) --- 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33/* $KAME: sctp_pcb.c,v 1.38 2005/03/06 16:04:18 itojun Exp $ */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/netinet/sctp_pcb.c 235077 2012-05-06 11:37:41Z tuexen $"); | 36__FBSDID("$FreeBSD: head/sys/netinet/sctp_pcb.c 235360 2012-05-12 20:11:35Z tuexen $"); |
37 38#include <netinet/sctp_os.h> 39#include <sys/proc.h> 40#include <netinet/sctp_var.h> 41#include <netinet/sctp_sysctl.h> 42#include <netinet/sctp_pcb.h> 43#include <netinet/sctputil.h> 44#include <netinet/sctp.h> --- 6297 unchanged lines hidden (view full) --- 6342 */ 6343 if (stcb_tmp) { 6344 if (SCTP_GET_STATE(&stcb_tmp->asoc) & SCTP_STATE_COOKIE_WAIT) { 6345 /* 6346 * in setup state we 6347 * abort this guy 6348 */ 6349 sctp_abort_an_association(stcb_tmp->sctp_ep, | 37 38#include <netinet/sctp_os.h> 39#include <sys/proc.h> 40#include <netinet/sctp_var.h> 41#include <netinet/sctp_sysctl.h> 42#include <netinet/sctp_pcb.h> 43#include <netinet/sctputil.h> 44#include <netinet/sctp.h> --- 6297 unchanged lines hidden (view full) --- 6342 */ 6343 if (stcb_tmp) { 6344 if (SCTP_GET_STATE(&stcb_tmp->asoc) & SCTP_STATE_COOKIE_WAIT) { 6345 /* 6346 * in setup state we 6347 * abort this guy 6348 */ 6349 sctp_abort_an_association(stcb_tmp->sctp_ep, |
6350 stcb_tmp, 1, NULL, 0); | 6350 stcb_tmp, NULL, SCTP_SO_NOT_LOCKED); |
6351 goto add_it_now; 6352 } 6353 SCTP_TCB_UNLOCK(stcb_tmp); 6354 } 6355 if (stcb->asoc.state == 0) { 6356 /* the assoc was freed? */ 6357 return (-12); 6358 } --- 74 unchanged lines hidden (view full) --- 6433 */ 6434 if (stcb_tmp) 6435 if (SCTP_GET_STATE(&stcb_tmp->asoc) & SCTP_STATE_COOKIE_WAIT) { 6436 /* 6437 * in setup state we 6438 * abort this guy 6439 */ 6440 sctp_abort_an_association(stcb_tmp->sctp_ep, | 6351 goto add_it_now; 6352 } 6353 SCTP_TCB_UNLOCK(stcb_tmp); 6354 } 6355 if (stcb->asoc.state == 0) { 6356 /* the assoc was freed? */ 6357 return (-12); 6358 } --- 74 unchanged lines hidden (view full) --- 6433 */ 6434 if (stcb_tmp) 6435 if (SCTP_GET_STATE(&stcb_tmp->asoc) & SCTP_STATE_COOKIE_WAIT) { 6436 /* 6437 * in setup state we 6438 * abort this guy 6439 */ 6440 sctp_abort_an_association(stcb_tmp->sctp_ep, |
6441 stcb_tmp, 1, NULL, 0); | 6441 stcb_tmp, NULL, SCTP_SO_NOT_LOCKED); |
6442 goto add_it_now6; 6443 } 6444 SCTP_TCB_UNLOCK(stcb_tmp); 6445 6446 if (stcb->asoc.state == 0) { 6447 /* the assoc was freed? */ 6448 return (-21); 6449 } --- 663 unchanged lines hidden --- | 6442 goto add_it_now6; 6443 } 6444 SCTP_TCB_UNLOCK(stcb_tmp); 6445 6446 if (stcb->asoc.state == 0) { 6447 /* the assoc was freed? */ 6448 return (-21); 6449 } --- 663 unchanged lines hidden --- |