sctp_bsd_addr.h revision 228653
1163953Srrs/*-
2169382Srrs * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved.
3218319Srrs * Copyright (c) 2008-2011, by Randall Stewart. All rights reserved.
4218319Srrs * Copyright (c) 2008-2011, by Michael Tuexen. All rights reserved.
5163953Srrs *
6163953Srrs * Redistribution and use in source and binary forms, with or without
7163953Srrs * modification, are permitted provided that the following conditions are met:
8163953Srrs *
9163953Srrs * a) Redistributions of source code must retain the above copyright notice,
10228653Stuexen *    this list of conditions and the following disclaimer.
11163953Srrs *
12163953Srrs * b) Redistributions in binary form must reproduce the above copyright
13163953Srrs *    notice, this list of conditions and the following disclaimer in
14228653Stuexen *    the documentation and/or other materials provided with the distribution.
15163953Srrs *
16163953Srrs * c) Neither the name of Cisco Systems, Inc. nor the names of its
17163953Srrs *    contributors may be used to endorse or promote products derived
18163953Srrs *    from this software without specific prior written permission.
19163953Srrs *
20163953Srrs * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21163953Srrs * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22163953Srrs * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23163953Srrs * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
24163953Srrs * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25163953Srrs * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26163953Srrs * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27163953Srrs * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28163953Srrs * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29163953Srrs * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30163953Srrs * THE POSSIBILITY OF SUCH DAMAGE.
31163953Srrs */
32163953Srrs
33163953Srrs#include <sys/cdefs.h>
34163953Srrs__FBSDID("$FreeBSD: head/sys/netinet/sctp_bsd_addr.h 228653 2011-12-17 19:21:40Z tuexen $");
35163953Srrs
36163953Srrs#ifndef __sctp_bsd_addr_h__
37163953Srrs#define __sctp_bsd_addr_h__
38168299Srrs#include <netinet/sctp_pcb.h>
39163953Srrs
40180387Srrs#if defined(_KERNEL) || defined(__Userspace__)
41163953Srrs
42208160Srrsextern struct iterator_control sctp_it_ctl;
43167598Srrsvoid sctp_wakeup_iterator(void);
44163953Srrs
45167598Srrsvoid sctp_startup_iterator(void);
46163953Srrs
47163953Srrs
48178251Srrs#ifdef INET6
49168299Srrsvoid sctp_gather_internal_ifa_flags(struct sctp_ifa *ifa);
50163953Srrs
51178251Srrs#endif
52178251Srrs
53170091Srrs#ifdef  SCTP_PACKET_LOGGING
54170091Srrs
55170091Srrsvoid sctp_packet_log(struct mbuf *m, int length);
56170091Srrsint sctp_copy_out_packet_log(uint8_t * target, int length);
57170091Srrs
58170091Srrs#endif
59170091Srrs
60168299Srrsvoid sctp_addr_change(struct ifaddr *ifa, int cmd);
61163953Srrs
62179783Srrsvoid sctp_add_or_del_interfaces(int (*pred) (struct ifnet *), int add);
63179783Srrs
64163953Srrs#endif
65163953Srrs#endif
66