Deleted Added
full compact
sctputil.c (270354) sctputil.c (270356)
1/*-
2 * Copyright (c) 2001-2008, by Cisco Systems, Inc. All rights reserved.
3 * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved.
4 * Copyright (c) 2008-2012, 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 *

--- 17 unchanged lines hidden (view full) ---

26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
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#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001-2008, by Cisco Systems, Inc. All rights reserved.
3 * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved.
4 * Copyright (c) 2008-2012, 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 *

--- 17 unchanged lines hidden (view full) ---

26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
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#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: stable/10/sys/netinet/sctputil.c 270354 2014-08-22 19:49:43Z tuexen $");
34__FBSDID("$FreeBSD: stable/10/sys/netinet/sctputil.c 270356 2014-08-22 19:57:39Z tuexen $");
35
36#include <netinet/sctp_os.h>
37#include <netinet/sctp_pcb.h>
38#include <netinet/sctputil.h>
39#include <netinet/sctp_var.h>
40#include <netinet/sctp_sysctl.h>
41#ifdef INET6
42#include <netinet6/sctp6_var.h>

--- 856 unchanged lines hidden (view full) ---

899 asoc = &stcb->asoc;
900 /* init all variables to a known value. */
901 SCTP_SET_STATE(&stcb->asoc, SCTP_STATE_INUSE);
902 asoc->max_burst = inp->sctp_ep.max_burst;
903 asoc->fr_max_burst = inp->sctp_ep.fr_max_burst;
904 asoc->heart_beat_delay = TICKS_TO_MSEC(inp->sctp_ep.sctp_timeoutticks[SCTP_TIMER_HEARTBEAT]);
905 asoc->cookie_life = inp->sctp_ep.def_cookie_life;
906 asoc->sctp_cmt_on_off = inp->sctp_cmt_on_off;
35
36#include <netinet/sctp_os.h>
37#include <netinet/sctp_pcb.h>
38#include <netinet/sctputil.h>
39#include <netinet/sctp_var.h>
40#include <netinet/sctp_sysctl.h>
41#ifdef INET6
42#include <netinet6/sctp6_var.h>

--- 856 unchanged lines hidden (view full) ---

899 asoc = &stcb->asoc;
900 /* init all variables to a known value. */
901 SCTP_SET_STATE(&stcb->asoc, SCTP_STATE_INUSE);
902 asoc->max_burst = inp->sctp_ep.max_burst;
903 asoc->fr_max_burst = inp->sctp_ep.fr_max_burst;
904 asoc->heart_beat_delay = TICKS_TO_MSEC(inp->sctp_ep.sctp_timeoutticks[SCTP_TIMER_HEARTBEAT]);
905 asoc->cookie_life = inp->sctp_ep.def_cookie_life;
906 asoc->sctp_cmt_on_off = inp->sctp_cmt_on_off;
907 asoc->ecn_allowed = inp->sctp_ecn_enable;
907 asoc->ecn_supported = inp->ecn_supported;
908 asoc->sctp_nr_sack_on_off = (uint8_t) SCTP_BASE_SYSCTL(sctp_nr_sack_on_off);
909 asoc->sctp_cmt_pf = (uint8_t) 0;
910 asoc->sctp_frag_point = inp->sctp_frag_point;
911 asoc->sctp_features = inp->sctp_features;
912 asoc->default_dscp = inp->sctp_ep.default_dscp;
913#ifdef INET6
914 if (inp->sctp_ep.default_flowlabel) {
915 asoc->default_flowlabel = inp->sctp_ep.default_flowlabel;

--- 6059 unchanged lines hidden ---
908 asoc->sctp_nr_sack_on_off = (uint8_t) SCTP_BASE_SYSCTL(sctp_nr_sack_on_off);
909 asoc->sctp_cmt_pf = (uint8_t) 0;
910 asoc->sctp_frag_point = inp->sctp_frag_point;
911 asoc->sctp_features = inp->sctp_features;
912 asoc->default_dscp = inp->sctp_ep.default_dscp;
913#ifdef INET6
914 if (inp->sctp_ep.default_flowlabel) {
915 asoc->default_flowlabel = inp->sctp_ep.default_flowlabel;

--- 6059 unchanged lines hidden ---