Deleted Added
full compact
sctp_pcb.c (170205) sctp_pcb.c (170428)
1/*-
2 * Copyright (c) 2001-2007, by 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, by 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 170205 2007-06-02 11:05:08Z rrs $");
34__FBSDID("$FreeBSD: head/sys/netinet/sctp_pcb.c 170428 2007-06-08 10:57:11Z 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>

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

3059 } else {
3060 if (from == SCTP_ADDR_IS_CONFIRMED)
3061 /* SCTP_ADDR_IS_CONFIRMED is passed by connect_x */
3062 net->dest_state = SCTP_ADDR_REACHABLE;
3063 else
3064 net->dest_state = SCTP_ADDR_REACHABLE |
3065 SCTP_ADDR_UNCONFIRMED;
3066 }
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>

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

3059 } else {
3060 if (from == SCTP_ADDR_IS_CONFIRMED)
3061 /* SCTP_ADDR_IS_CONFIRMED is passed by connect_x */
3062 net->dest_state = SCTP_ADDR_REACHABLE;
3063 else
3064 net->dest_state = SCTP_ADDR_REACHABLE |
3065 SCTP_ADDR_UNCONFIRMED;
3066 }
3067 net->RTO = stcb->asoc.initial_rto;
3067 /*
3068 * We set this to 0, the timer code knows that this means its an
3069 * initial value
3070 */
3071 net->RTO = 0;
3068 stcb->asoc.numnets++;
3069 *(&net->ref_count) = 1;
3070 net->tos_flowlabel = 0;
3071#ifdef INET
3072 if (newaddr->sa_family == AF_INET)
3073 net->tos_flowlabel = stcb->asoc.default_tos;
3074#endif
3075#ifdef INET6

--- 2569 unchanged lines hidden ---
3072 stcb->asoc.numnets++;
3073 *(&net->ref_count) = 1;
3074 net->tos_flowlabel = 0;
3075#ifdef INET
3076 if (newaddr->sa_family == AF_INET)
3077 net->tos_flowlabel = stcb->asoc.default_tos;
3078#endif
3079#ifdef INET6

--- 2569 unchanged lines hidden ---