sctp_usrreq.c (235057) | sctp_usrreq.c (235075) |
---|---|
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_usrreq.c,v 1.48 2005/03/07 23:26:08 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_usrreq.c,v 1.48 2005/03/07 23:26:08 itojun Exp $ */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/netinet/sctp_usrreq.c 235057 2012-05-05 14:06:15Z tuexen $"); | 36__FBSDID("$FreeBSD: head/sys/netinet/sctp_usrreq.c 235075 2012-05-06 11:02:53Z tuexen $"); |
37#include <netinet/sctp_os.h> 38#include <sys/proc.h> 39#include <netinet/sctp_pcb.h> 40#include <netinet/sctp_header.h> 41#include <netinet/sctp_var.h> 42#if defined(INET6) 43#endif 44#include <netinet/sctp_sysctl.h> --- 2939 unchanged lines hidden (view full) --- 2984 error = ENOTSUP; 2985 break; 2986 case SCTP_ASSOC_RESET_EVENT: 2987 event_type = SCTP_PCB_FLAGS_ASSOC_RESETEVNT; 2988 break; 2989 case SCTP_STREAM_CHANGE_EVENT: 2990 event_type = SCTP_PCB_FLAGS_STREAM_CHANGEEVNT; 2991 break; | 37#include <netinet/sctp_os.h> 38#include <sys/proc.h> 39#include <netinet/sctp_pcb.h> 40#include <netinet/sctp_header.h> 41#include <netinet/sctp_var.h> 42#if defined(INET6) 43#endif 44#include <netinet/sctp_sysctl.h> --- 2939 unchanged lines hidden (view full) --- 2984 error = ENOTSUP; 2985 break; 2986 case SCTP_ASSOC_RESET_EVENT: 2987 event_type = SCTP_PCB_FLAGS_ASSOC_RESETEVNT; 2988 break; 2989 case SCTP_STREAM_CHANGE_EVENT: 2990 event_type = SCTP_PCB_FLAGS_STREAM_CHANGEEVNT; 2991 break; |
2992 case SCTP_SEND_FAILED_EVENT: 2993 event_type = SCTP_PCB_FLAGS_RECVNSENDFAILEVNT; 2994 break; |
|
2992 default: 2993 event_type = 0; 2994 SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_USRREQ, EINVAL); 2995 error = EINVAL; 2996 break; 2997 } 2998 if (event_type > 0) { 2999 if (stcb) { --- 2407 unchanged lines hidden (view full) --- 5407 error = ENOTSUP; 5408 break; 5409 case SCTP_ASSOC_RESET_EVENT: 5410 event_type = SCTP_PCB_FLAGS_ASSOC_RESETEVNT; 5411 break; 5412 case SCTP_STREAM_CHANGE_EVENT: 5413 event_type = SCTP_PCB_FLAGS_STREAM_CHANGEEVNT; 5414 break; | 2995 default: 2996 event_type = 0; 2997 SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_USRREQ, EINVAL); 2998 error = EINVAL; 2999 break; 3000 } 3001 if (event_type > 0) { 3002 if (stcb) { --- 2407 unchanged lines hidden (view full) --- 5410 error = ENOTSUP; 5411 break; 5412 case SCTP_ASSOC_RESET_EVENT: 5413 event_type = SCTP_PCB_FLAGS_ASSOC_RESETEVNT; 5414 break; 5415 case SCTP_STREAM_CHANGE_EVENT: 5416 event_type = SCTP_PCB_FLAGS_STREAM_CHANGEEVNT; 5417 break; |
5418 case SCTP_SEND_FAILED_EVENT: 5419 event_type = SCTP_PCB_FLAGS_RECVNSENDFAILEVNT; 5420 break; |
|
5415 default: 5416 event_type = 0; 5417 SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_USRREQ, EINVAL); 5418 error = EINVAL; 5419 break; 5420 } 5421 if (event_type > 0) { 5422 if (stcb) { --- 1091 unchanged lines hidden --- | 5421 default: 5422 event_type = 0; 5423 SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_USRREQ, EINVAL); 5424 error = EINVAL; 5425 break; 5426 } 5427 if (event_type > 0) { 5428 if (stcb) { --- 1091 unchanged lines hidden --- |