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

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

3810
3811 if (net) {
3812 SCTPDBG(SCTP_DEBUG_OUTPUT1, "Destination was ");
3813 SCTPDBG_ADDR(SCTP_DEBUG_OUTPUT1, &net->ro._l_addr.sa);
3814 if (net->dest_state & SCTP_ADDR_CONFIRMED) {
3815 if ((net->dest_state & SCTP_ADDR_REACHABLE) && stcb) {
3816 SCTPDBG(SCTP_DEBUG_OUTPUT1, "no route takes interface %p down\n", net);
3817 sctp_ulp_notify(SCTP_NOTIFY_INTERFACE_DOWN,
37
38#include <netinet/sctp_os.h>
39#include <sys/proc.h>
40#include <netinet/sctp_var.h>
41#include <netinet/sctp_sysctl.h>
42#include <netinet/sctp_header.h>
43#include <netinet/sctp_pcb.h>
44#include <netinet/sctputil.h>

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

3810
3811 if (net) {
3812 SCTPDBG(SCTP_DEBUG_OUTPUT1, "Destination was ");
3813 SCTPDBG_ADDR(SCTP_DEBUG_OUTPUT1, &net->ro._l_addr.sa);
3814 if (net->dest_state & SCTP_ADDR_CONFIRMED) {
3815 if ((net->dest_state & SCTP_ADDR_REACHABLE) && stcb) {
3816 SCTPDBG(SCTP_DEBUG_OUTPUT1, "no route takes interface %p down\n", net);
3817 sctp_ulp_notify(SCTP_NOTIFY_INTERFACE_DOWN,
3818 stcb,
3819 SCTP_FAILED_THRESHOLD,
3818 stcb, 0,
3820 (void *)net,
3821 so_locked);
3822 net->dest_state &= ~SCTP_ADDR_REACHABLE;
3823 net->dest_state &= ~SCTP_ADDR_PF;
3824 }
3825 }
3826 if (stcb) {
3827 if (net == stcb->asoc.primary_destination) {

--- 10167 unchanged lines hidden ---
3819 (void *)net,
3820 so_locked);
3821 net->dest_state &= ~SCTP_ADDR_REACHABLE;
3822 net->dest_state &= ~SCTP_ADDR_PF;
3823 }
3824 }
3825 if (stcb) {
3826 if (net == stcb->asoc.primary_destination) {

--- 10167 unchanged lines hidden ---