sctp_asconf.h revision 165647
1163953Srrs/*-
2163953Srrs * Copyright (c) 2001-2006, 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/* $KAME: sctp_asconf.h,v 1.8 2005/03/06 16:04:16 itojun Exp $	 */
32163953Srrs
33163953Srrs#include <sys/cdefs.h>
34163953Srrs__FBSDID("$FreeBSD: head/sys/netinet/sctp_asconf.h 165647 2006-12-29 20:21:42Z rrs $");
35163953Srrs
36163953Srrs#ifndef _NETINET_SCTP_ASCONF_H_
37163953Srrs#define _NETINET_SCTP_ASCONF_H_
38163953Srrs
39163953Srrs#include <sys/malloc.h>
40163953Srrs
41163953Srrs
42163953Srrs#if defined(_KERNEL)
43163953Srrs
44165647Srrs/*
45165647Srrs * function prototypes
46165647Srrs */
47163953Srrsextern void sctp_asconf_cleanup(struct sctp_tcb *, struct sctp_nets *);
48163953Srrs
49165647Srrsextern struct mbuf *sctp_compose_asconf(struct sctp_tcb *, int *);
50163953Srrs
51163953Srrsextern void
52163953Srrssctp_handle_asconf(struct mbuf *, unsigned int, struct sctp_asconf_chunk *,
53163953Srrs    struct sctp_tcb *);
54163953Srrs
55163953Srrsextern void
56163953Srrssctp_handle_asconf_ack(struct mbuf *, int,
57163953Srrs    struct sctp_asconf_ack_chunk *, struct sctp_tcb *, struct sctp_nets *);
58163953Srrs
59163953Srrsextern uint32_t
60163953Srrssctp_addr_mgmt_ep_sa(struct sctp_inpcb *, struct sockaddr *,
61163953Srrs    uint16_t);
62163953Srrs
63163953Srrsextern void sctp_add_ip_address(struct ifaddr *);
64163953Srrs
65163953Srrsextern void sctp_delete_ip_address(struct ifaddr *);
66163953Srrs
67163953Srrsextern void sctp_addr_change(struct ifaddr *ifa, int cmd);
68163953Srrs
69163953Srrsextern int32_t
70163953Srrssctp_set_primary_ip_address_sa(struct sctp_tcb *,
71163953Srrs    struct sockaddr *);
72163953Srrs
73163953Srrsextern void sctp_set_primary_ip_address(struct ifaddr *);
74163953Srrs
75163953Srrsextern void
76163953Srrssctp_check_address_list(struct sctp_tcb *, struct mbuf *, int, int,
77163953Srrs    struct sockaddr *, uint16_t, uint16_t, uint16_t, uint16_t);
78163953Srrs
79163953Srrs#endif				/* _KERNEL */
80163953Srrs
81163953Srrs#endif				/* !_NETINET_SCTP_ASCONF_H_ */
82