sctp_bsd_addr.c (175751) | sctp_bsd_addr.c (178251) |
---|---|
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_output.c,v 1.46 2005/03/06 16:04:17 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_output.c,v 1.46 2005/03/06 16:04:17 itojun Exp $ */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/netinet/sctp_bsd_addr.c 175751 2008-01-28 10:33:41Z rrs $"); | 34__FBSDID("$FreeBSD: head/sys/netinet/sctp_bsd_addr.c 178251 2008-04-16 17:24:18Z rrs $"); |
35 36#include <netinet/sctp_os.h> 37#include <netinet/sctp_var.h> 38#include <netinet/sctp_pcb.h> 39#include <netinet/sctp_header.h> 40#include <netinet/sctputil.h> 41#include <netinet/sctp_output.h> 42#include <netinet/sctp_bsd_addr.h> --- 68 unchanged lines hidden (view full) --- 111 &sctppcbinfo.thread_proc, 112 RFPROC, 113 SCTP_KTHREAD_PAGES, 114 SCTP_KTRHEAD_NAME); 115} 116 117#endif 118 | 35 36#include <netinet/sctp_os.h> 37#include <netinet/sctp_var.h> 38#include <netinet/sctp_pcb.h> 39#include <netinet/sctp_header.h> 40#include <netinet/sctputil.h> 41#include <netinet/sctp_output.h> 42#include <netinet/sctp_bsd_addr.h> --- 68 unchanged lines hidden (view full) --- 111 &sctppcbinfo.thread_proc, 112 RFPROC, 113 SCTP_KTHREAD_PAGES, 114 SCTP_KTRHEAD_NAME); 115} 116 117#endif 118 |
119 | 119#ifdef INET6 |
120void 121sctp_gather_internal_ifa_flags(struct sctp_ifa *ifa) 122{ 123 struct in6_ifaddr *ifa6; 124 125 ifa6 = (struct in6_ifaddr *)ifa->ifa; 126 ifa->flags = ifa6->ia6_flags; 127 if (!ip6_use_deprecated) { --- 11 unchanged lines hidden (view full) --- 139 IN6_IFF_ANYCAST | 140 IN6_IFF_NOTREADY)) { 141 ifa->localifa_flags |= SCTP_ADDR_IFA_UNUSEABLE; 142 } else { 143 ifa->localifa_flags &= ~SCTP_ADDR_IFA_UNUSEABLE; 144 } 145} 146 | 120void 121sctp_gather_internal_ifa_flags(struct sctp_ifa *ifa) 122{ 123 struct in6_ifaddr *ifa6; 124 125 ifa6 = (struct in6_ifaddr *)ifa->ifa; 126 ifa->flags = ifa6->ia6_flags; 127 if (!ip6_use_deprecated) { --- 11 unchanged lines hidden (view full) --- 139 IN6_IFF_ANYCAST | 140 IN6_IFF_NOTREADY)) { 141 ifa->localifa_flags |= SCTP_ADDR_IFA_UNUSEABLE; 142 } else { 143 ifa->localifa_flags &= ~SCTP_ADDR_IFA_UNUSEABLE; 144 } 145} 146 |
147#endif |
|
147 148 149static uint32_t 150sctp_is_desired_interface_type(struct ifaddr *ifa) 151{ 152 int result; 153 154 /* check the interface type to see if it's one we care about */ --- 375 unchanged lines hidden --- | 148 149 150static uint32_t 151sctp_is_desired_interface_type(struct ifaddr *ifa) 152{ 153 int result; 154 155 /* check the interface type to see if it's one we care about */ --- 375 unchanged lines hidden --- |