sctp_bsd_addr.h revision 208160
1163953Srrs/*-
2169382Srrs * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved.
3163953Srrs *
4163953Srrs * Redistribution and use in source and binary forms, with or without
5163953Srrs * modification, are permitted provided that the following conditions are met:
6163953Srrs *
7163953Srrs * a) Redistributions of source code must retain the above copyright notice,
8163953Srrs *   this list of conditions and the following disclaimer.
9163953Srrs *
10163953Srrs * b) Redistributions in binary form must reproduce the above copyright
11163953Srrs *    notice, this list of conditions and the following disclaimer in
12163953Srrs *   the documentation and/or other materials provided with the distribution.
13163953Srrs *
14163953Srrs * c) Neither the name of Cisco Systems, Inc. nor the names of its
15163953Srrs *    contributors may be used to endorse or promote products derived
16163953Srrs *    from this software without specific prior written permission.
17163953Srrs *
18163953Srrs * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19163953Srrs * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
20163953Srrs * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21163953Srrs * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
22163953Srrs * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23163953Srrs * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24163953Srrs * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25163953Srrs * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26163953Srrs * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27163953Srrs * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
28163953Srrs * THE POSSIBILITY OF SUCH DAMAGE.
29163953Srrs */
30163953Srrs
31163953Srrs#include <sys/cdefs.h>
32163953Srrs__FBSDID("$FreeBSD: head/sys/netinet/sctp_bsd_addr.h 208160 2010-05-16 17:03:56Z rrs $");
33163953Srrs
34163953Srrs#ifndef __sctp_bsd_addr_h__
35163953Srrs#define __sctp_bsd_addr_h__
36168299Srrs#include <netinet/sctp_pcb.h>
37163953Srrs
38180387Srrs#if defined(_KERNEL) || defined(__Userspace__)
39163953Srrs
40208160Srrsextern struct iterator_control sctp_it_ctl;
41167598Srrsvoid sctp_wakeup_iterator(void);
42163953Srrs
43167598Srrsvoid sctp_startup_iterator(void);
44163953Srrs
45163953Srrs
46178251Srrs#ifdef INET6
47168299Srrsvoid sctp_gather_internal_ifa_flags(struct sctp_ifa *ifa);
48163953Srrs
49178251Srrs#endif
50178251Srrs
51170091Srrs#ifdef  SCTP_PACKET_LOGGING
52170091Srrs
53170091Srrsvoid sctp_packet_log(struct mbuf *m, int length);
54170091Srrsint sctp_copy_out_packet_log(uint8_t * target, int length);
55170091Srrs
56170091Srrs#endif
57170091Srrs
58168299Srrsvoid sctp_addr_change(struct ifaddr *ifa, int cmd);
59163953Srrs
60179783Srrsvoid sctp_add_or_del_interfaces(int (*pred) (struct ifnet *), int add);
61179783Srrs
62163953Srrs#endif
63163953Srrs#endif
64