sctp_peeloff.c (233004) | sctp_peeloff.c (233660) |
---|---|
1/*- 2 * Copyright (c) 2001-2007, 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 * --- 20 unchanged lines hidden (view full) --- 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 34/* $KAME: sctp_peeloff.c,v 1.13 2005/03/06 16:04:18 itojun Exp $ */ 35 36#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001-2007, 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 * --- 20 unchanged lines hidden (view full) --- 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 34/* $KAME: sctp_peeloff.c,v 1.13 2005/03/06 16:04:18 itojun Exp $ */ 35 36#include <sys/cdefs.h> |
37__FBSDID("$FreeBSD: head/sys/netinet/sctp_peeloff.c 233004 2012-03-15 14:13:38Z tuexen $"); | 37__FBSDID("$FreeBSD: head/sys/netinet/sctp_peeloff.c 233660 2012-03-29 13:36:53Z rrs $"); |
38#include <netinet/sctp_os.h> 39#include <netinet/sctp_pcb.h> 40#include <netinet/sctputil.h> 41#include <netinet/sctp_var.h> 42#include <netinet/sctp_var.h> 43#include <netinet/sctp_sysctl.h> 44#include <netinet/sctp.h> 45#include <netinet/sctp_uio.h> --- 76 unchanged lines hidden (view full) --- 122 n_inp->sctp_socket = so; 123 n_inp->sctp_features = inp->sctp_features; 124 n_inp->sctp_mobility_features = inp->sctp_mobility_features; 125 n_inp->sctp_frag_point = inp->sctp_frag_point; 126 n_inp->sctp_cmt_on_off = inp->sctp_cmt_on_off; 127 n_inp->sctp_ecn_enable = inp->sctp_ecn_enable; 128 n_inp->partial_delivery_point = inp->partial_delivery_point; 129 n_inp->sctp_context = inp->sctp_context; | 38#include <netinet/sctp_os.h> 39#include <netinet/sctp_pcb.h> 40#include <netinet/sctputil.h> 41#include <netinet/sctp_var.h> 42#include <netinet/sctp_var.h> 43#include <netinet/sctp_sysctl.h> 44#include <netinet/sctp.h> 45#include <netinet/sctp_uio.h> --- 76 unchanged lines hidden (view full) --- 122 n_inp->sctp_socket = so; 123 n_inp->sctp_features = inp->sctp_features; 124 n_inp->sctp_mobility_features = inp->sctp_mobility_features; 125 n_inp->sctp_frag_point = inp->sctp_frag_point; 126 n_inp->sctp_cmt_on_off = inp->sctp_cmt_on_off; 127 n_inp->sctp_ecn_enable = inp->sctp_ecn_enable; 128 n_inp->partial_delivery_point = inp->partial_delivery_point; 129 n_inp->sctp_context = inp->sctp_context; |
130 n_inp->local_strreset_support = inp->local_strreset_support; |
|
130 n_inp->inp_starting_point_for_iterator = NULL; 131 /* copy in the authentication parameters from the original endpoint */ 132 if (n_inp->sctp_ep.local_hmacs) 133 sctp_free_hmaclist(n_inp->sctp_ep.local_hmacs); 134 n_inp->sctp_ep.local_hmacs = 135 sctp_copy_hmaclist(inp->sctp_ep.local_hmacs); 136 if (n_inp->sctp_ep.local_auth_chunks) 137 sctp_free_chunklist(n_inp->sctp_ep.local_auth_chunks); --- 59 unchanged lines hidden (view full) --- 197 SCTP_PCB_FLAGS_IN_TCPPOOL | /* Turn on Blocking IO */ 198 (SCTP_PCB_COPY_FLAGS & inp->sctp_flags)); 199 n_inp->sctp_features = inp->sctp_features; 200 n_inp->sctp_frag_point = inp->sctp_frag_point; 201 n_inp->sctp_cmt_on_off = inp->sctp_cmt_on_off; 202 n_inp->sctp_ecn_enable = inp->sctp_ecn_enable; 203 n_inp->partial_delivery_point = inp->partial_delivery_point; 204 n_inp->sctp_context = inp->sctp_context; | 131 n_inp->inp_starting_point_for_iterator = NULL; 132 /* copy in the authentication parameters from the original endpoint */ 133 if (n_inp->sctp_ep.local_hmacs) 134 sctp_free_hmaclist(n_inp->sctp_ep.local_hmacs); 135 n_inp->sctp_ep.local_hmacs = 136 sctp_copy_hmaclist(inp->sctp_ep.local_hmacs); 137 if (n_inp->sctp_ep.local_auth_chunks) 138 sctp_free_chunklist(n_inp->sctp_ep.local_auth_chunks); --- 59 unchanged lines hidden (view full) --- 198 SCTP_PCB_FLAGS_IN_TCPPOOL | /* Turn on Blocking IO */ 199 (SCTP_PCB_COPY_FLAGS & inp->sctp_flags)); 200 n_inp->sctp_features = inp->sctp_features; 201 n_inp->sctp_frag_point = inp->sctp_frag_point; 202 n_inp->sctp_cmt_on_off = inp->sctp_cmt_on_off; 203 n_inp->sctp_ecn_enable = inp->sctp_ecn_enable; 204 n_inp->partial_delivery_point = inp->partial_delivery_point; 205 n_inp->sctp_context = inp->sctp_context; |
206 n_inp->local_strreset_support = inp->local_strreset_support; |
|
205 n_inp->inp_starting_point_for_iterator = NULL; 206 207 /* copy in the authentication parameters from the original endpoint */ 208 if (n_inp->sctp_ep.local_hmacs) 209 sctp_free_hmaclist(n_inp->sctp_ep.local_hmacs); 210 n_inp->sctp_ep.local_hmacs = 211 sctp_copy_hmaclist(inp->sctp_ep.local_hmacs); 212 if (n_inp->sctp_ep.local_auth_chunks) --- 41 unchanged lines hidden --- | 207 n_inp->inp_starting_point_for_iterator = NULL; 208 209 /* copy in the authentication parameters from the original endpoint */ 210 if (n_inp->sctp_ep.local_hmacs) 211 sctp_free_hmaclist(n_inp->sctp_ep.local_hmacs); 212 n_inp->sctp_ep.local_hmacs = 213 sctp_copy_hmaclist(inp->sctp_ep.local_hmacs); 214 if (n_inp->sctp_ep.local_auth_chunks) --- 41 unchanged lines hidden --- |