1f8829a4aSRandall Stewart /*- 251369649SPedro F. Giffuni * SPDX-License-Identifier: BSD-3-Clause 351369649SPedro F. Giffuni * 4b1006367SRandall Stewart * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved. 5807aad63SMichael Tuexen * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved. 6807aad63SMichael Tuexen * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved. 7f8829a4aSRandall Stewart * 8f8829a4aSRandall Stewart * Redistribution and use in source and binary forms, with or without 9f8829a4aSRandall Stewart * modification, are permitted provided that the following conditions are met: 10f8829a4aSRandall Stewart * 11f8829a4aSRandall Stewart * a) Redistributions of source code must retain the above copyright notice, 12f8829a4aSRandall Stewart * this list of conditions and the following disclaimer. 13f8829a4aSRandall Stewart * 14f8829a4aSRandall Stewart * b) Redistributions in binary form must reproduce the above copyright 15f8829a4aSRandall Stewart * notice, this list of conditions and the following disclaimer in 16f8829a4aSRandall Stewart * the documentation and/or other materials provided with the distribution. 17f8829a4aSRandall Stewart * 18f8829a4aSRandall Stewart * c) Neither the name of Cisco Systems, Inc. nor the names of its 19f8829a4aSRandall Stewart * contributors may be used to endorse or promote products derived 20f8829a4aSRandall Stewart * from this software without specific prior written permission. 21f8829a4aSRandall Stewart * 22f8829a4aSRandall Stewart * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23f8829a4aSRandall Stewart * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 24f8829a4aSRandall Stewart * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25f8829a4aSRandall Stewart * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 26f8829a4aSRandall Stewart * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 27f8829a4aSRandall Stewart * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 28f8829a4aSRandall Stewart * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 29f8829a4aSRandall Stewart * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 30f8829a4aSRandall Stewart * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 31f8829a4aSRandall Stewart * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 32f8829a4aSRandall Stewart * THE POSSIBILITY OF SUCH DAMAGE. 33f8829a4aSRandall Stewart */ 34f8829a4aSRandall Stewart 35807aad63SMichael Tuexen #ifndef _NETINET_SCTP_BSD_ADDR_H_ 36807aad63SMichael Tuexen #define _NETINET_SCTP_BSD_ADDR_H_ 37807aad63SMichael Tuexen 38bff64a4dSRandall Stewart #include <netinet/sctp_pcb.h> 39f8829a4aSRandall Stewart 40fc14de76SRandall Stewart #if defined(_KERNEL) || defined(__Userspace__) 41f8829a4aSRandall Stewart 42f7517433SRandall Stewart extern struct iterator_control sctp_it_ctl; 4342551e99SRandall Stewart void sctp_wakeup_iterator(void); 4442551e99SRandall Stewart 4542551e99SRandall Stewart void sctp_startup_iterator(void); 4642551e99SRandall Stewart 475e2c2d87SRandall Stewart #ifdef INET6 48bff64a4dSRandall Stewart void sctp_gather_internal_ifa_flags(struct sctp_ifa *ifa); 495e2c2d87SRandall Stewart #endif 505e2c2d87SRandall Stewart 51207304d4SRandall Stewart #ifdef SCTP_PACKET_LOGGING 52207304d4SRandall Stewart 53f9384252SMichael Tuexen void sctp_packet_log(struct mbuf *m); 54207304d4SRandall Stewart int sctp_copy_out_packet_log(uint8_t *target, int length); 55207304d4SRandall Stewart 56207304d4SRandall Stewart #endif 57207304d4SRandall Stewart 58bff64a4dSRandall Stewart void sctp_addr_change(struct ifaddr *ifa, int cmd); 59f8829a4aSRandall Stewart 60*d6e23cf0SMichael Tuexen void sctp_addr_change_event_handler(void *, struct ifaddr *, int); 61*d6e23cf0SMichael Tuexen 62b3f1ea41SRandall Stewart void sctp_add_or_del_interfaces(int (*pred) (struct ifnet *), int add); 63b3f1ea41SRandall Stewart 64f8829a4aSRandall Stewart #endif 65f8829a4aSRandall Stewart #endif 66