Deleted Added
full compact
sctp_indata.c (235360) sctp_indata.c (235414)
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 *

--- 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_indata.c,v 1.36 2005/03/06 16:04:17 itojun Exp $ */
34
35#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 *

--- 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_indata.c,v 1.36 2005/03/06 16:04:17 itojun Exp $ */
34
35#include <sys/cdefs.h>
36__FBSDID("$FreeBSD: head/sys/netinet/sctp_indata.c 235360 2012-05-12 20:11:35Z tuexen $");
36__FBSDID("$FreeBSD: head/sys/netinet/sctp_indata.c 235414 2012-05-13 17:36:04Z tuexen $");
37
38#include <netinet/sctp_os.h>
39#include <netinet/sctp_var.h>
40#include <netinet/sctp_sysctl.h>
41#include <netinet/sctp_pcb.h>
42#include <netinet/sctp_header.h>
43#include <netinet/sctputil.h>
44#include <netinet/sctp_output.h>

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

4019 * Karn's rule applies to clearing error
4020 * count, this is optional.
4021 */
4022 net->error_count = 0;
4023 if (!(net->dest_state & SCTP_ADDR_REACHABLE)) {
4024 /* addr came good */
4025 net->dest_state |= SCTP_ADDR_REACHABLE;
4026 sctp_ulp_notify(SCTP_NOTIFY_INTERFACE_UP, stcb,
37
38#include <netinet/sctp_os.h>
39#include <netinet/sctp_var.h>
40#include <netinet/sctp_sysctl.h>
41#include <netinet/sctp_pcb.h>
42#include <netinet/sctp_header.h>
43#include <netinet/sctputil.h>
44#include <netinet/sctp_output.h>

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

4019 * Karn's rule applies to clearing error
4020 * count, this is optional.
4021 */
4022 net->error_count = 0;
4023 if (!(net->dest_state & SCTP_ADDR_REACHABLE)) {
4024 /* addr came good */
4025 net->dest_state |= SCTP_ADDR_REACHABLE;
4026 sctp_ulp_notify(SCTP_NOTIFY_INTERFACE_UP, stcb,
4027 SCTP_RECEIVED_SACK, (void *)net, SCTP_SO_NOT_LOCKED);
4027 0, (void *)net, SCTP_SO_NOT_LOCKED);
4028 }
4029 if (net == stcb->asoc.primary_destination) {
4030 if (stcb->asoc.alternate) {
4031 /*
4032 * release the alternate,
4033 * primary is good
4034 */
4035 sctp_free_remote_addr(stcb->asoc.alternate);

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

4826 * Karn's rule applies to clearing error
4827 * count, this is optional.
4828 */
4829 net->error_count = 0;
4830 if (!(net->dest_state & SCTP_ADDR_REACHABLE)) {
4831 /* addr came good */
4832 net->dest_state |= SCTP_ADDR_REACHABLE;
4833 sctp_ulp_notify(SCTP_NOTIFY_INTERFACE_UP, stcb,
4028 }
4029 if (net == stcb->asoc.primary_destination) {
4030 if (stcb->asoc.alternate) {
4031 /*
4032 * release the alternate,
4033 * primary is good
4034 */
4035 sctp_free_remote_addr(stcb->asoc.alternate);

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

4826 * Karn's rule applies to clearing error
4827 * count, this is optional.
4828 */
4829 net->error_count = 0;
4830 if (!(net->dest_state & SCTP_ADDR_REACHABLE)) {
4831 /* addr came good */
4832 net->dest_state |= SCTP_ADDR_REACHABLE;
4833 sctp_ulp_notify(SCTP_NOTIFY_INTERFACE_UP, stcb,
4834 SCTP_RECEIVED_SACK, (void *)net, SCTP_SO_NOT_LOCKED);
4834 0, (void *)net, SCTP_SO_NOT_LOCKED);
4835 }
4836 if (net == stcb->asoc.primary_destination) {
4837 if (stcb->asoc.alternate) {
4838 /*
4839 * release the alternate,
4840 * primary is good
4841 */
4842 sctp_free_remote_addr(stcb->asoc.alternate);

--- 739 unchanged lines hidden ---
4835 }
4836 if (net == stcb->asoc.primary_destination) {
4837 if (stcb->asoc.alternate) {
4838 /*
4839 * release the alternate,
4840 * primary is good
4841 */
4842 sctp_free_remote_addr(stcb->asoc.alternate);

--- 739 unchanged lines hidden ---