sctp_asconf.c (284507) | sctp_asconf.c (284633) |
---|---|
1/*- 2 * Copyright (c) 2001-2007, 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-2007, 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/sctp_asconf.c 284507 2015-06-17 09:44:02Z tuexen $"); | 34__FBSDID("$FreeBSD: stable/10/sys/netinet/sctp_asconf.c 284633 2015-06-20 08:25:27Z tuexen $"); |
35 36#include <netinet/sctp_os.h> 37#include <netinet/sctp_var.h> 38#include <netinet/sctp_sysctl.h> 39#include <netinet/sctp_pcb.h> 40#include <netinet/sctp_header.h> 41#include <netinet/sctputil.h> 42#include <netinet/sctp_output.h> --- 1061 unchanged lines hidden (view full) --- 1104 /* 1105 * Check if the nexthop is corresponding to the new address. 1106 * If the new address is corresponding to the current 1107 * nexthop, the path will be changed. If the new address is 1108 * NOT corresponding to the current nexthop, the path will 1109 * not be changed. 1110 */ 1111 SCTP_RTALLOC((sctp_route_t *) & net->ro, | 35 36#include <netinet/sctp_os.h> 37#include <netinet/sctp_var.h> 38#include <netinet/sctp_sysctl.h> 39#include <netinet/sctp_pcb.h> 40#include <netinet/sctp_header.h> 41#include <netinet/sctputil.h> 42#include <netinet/sctp_output.h> --- 1061 unchanged lines hidden (view full) --- 1104 /* 1105 * Check if the nexthop is corresponding to the new address. 1106 * If the new address is corresponding to the current 1107 * nexthop, the path will be changed. If the new address is 1108 * NOT corresponding to the current nexthop, the path will 1109 * not be changed. 1110 */ 1111 SCTP_RTALLOC((sctp_route_t *) & net->ro, |
1112 stcb->sctp_ep->def_vrf_id); | 1112 stcb->sctp_ep->def_vrf_id, 1113 stcb->sctp_ep->fibnum); |
1113 if (net->ro.ro_rt == NULL) 1114 continue; 1115 1116 changed = 0; 1117 switch (net->ro._l_addr.sa.sa_family) { 1118#ifdef INET 1119 case AF_INET: 1120 if (sctp_v4src_match_nexthop(newifa, (sctp_route_t *) & net->ro)) { --- 2391 unchanged lines hidden --- | 1114 if (net->ro.ro_rt == NULL) 1115 continue; 1116 1117 changed = 0; 1118 switch (net->ro._l_addr.sa.sa_family) { 1119#ifdef INET 1120 case AF_INET: 1121 if (sctp_v4src_match_nexthop(newifa, (sctp_route_t *) & net->ro)) { --- 2391 unchanged lines hidden --- |