sctp_asconf.h revision 166086
154359Sroberto/*-
2285612Sdelphij * Copyright (c) 2001-2007, Cisco Systems, Inc. All rights reserved.
354359Sroberto *
454359Sroberto * Redistribution and use in source and binary forms, with or without
554359Sroberto * modification, are permitted provided that the following conditions are met:
654359Sroberto *
754359Sroberto * a) Redistributions of source code must retain the above copyright notice,
8132451Sroberto *   this list of conditions and the following disclaimer.
954359Sroberto *
1054359Sroberto * b) Redistributions in binary form must reproduce the above copyright
11132451Sroberto *    notice, this list of conditions and the following disclaimer in
12285612Sdelphij *   the documentation and/or other materials provided with the distribution.
1354359Sroberto *
1454359Sroberto * c) Neither the name of Cisco Systems, Inc. nor the names of its
15285612Sdelphij *    contributors may be used to endorse or promote products derived
1654359Sroberto *    from this software without specific prior written permission.
17285612Sdelphij *
1854359Sroberto * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19293650Sglebius * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
2054359Sroberto * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21293650Sglebius * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
22293650Sglebius * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23293650Sglebius * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24293650Sglebius * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2554359Sroberto * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2654359Sroberto * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27285612Sdelphij * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
28285612Sdelphij * THE POSSIBILITY OF SUCH DAMAGE.
29285612Sdelphij */
3054359Sroberto
3154359Sroberto/* $KAME: sctp_asconf.h,v 1.8 2005/03/06 16:04:16 itojun Exp $	 */
32285612Sdelphij
33285612Sdelphij#include <sys/cdefs.h>
34285612Sdelphij__FBSDID("$FreeBSD: head/sys/netinet/sctp_asconf.h 166086 2007-01-18 09:58:43Z rrs $");
3554359Sroberto
36285612Sdelphij#ifndef _NETINET_SCTP_ASCONF_H_
37285612Sdelphij#define _NETINET_SCTP_ASCONF_H_
38285612Sdelphij
39285612Sdelphij#if defined(_KERNEL)
40285612Sdelphij
41285612Sdelphij/*
42285612Sdelphij * function prototypes
43285612Sdelphij */
44285612Sdelphijextern void sctp_asconf_cleanup(struct sctp_tcb *, struct sctp_nets *);
45285612Sdelphij
46285612Sdelphijextern struct mbuf *sctp_compose_asconf(struct sctp_tcb *, int *);
47293650Sglebius
48285612Sdelphijextern void
49285612Sdelphijsctp_handle_asconf(struct mbuf *, unsigned int, struct sctp_asconf_chunk *,
50285612Sdelphij    struct sctp_tcb *);
5154359Sroberto
5254359Srobertoextern void
5354359Srobertosctp_handle_asconf_ack(struct mbuf *, int,
5454359Sroberto    struct sctp_asconf_ack_chunk *, struct sctp_tcb *, struct sctp_nets *);
5554359Sroberto
5654359Srobertoextern uint32_t
57285612Sdelphijsctp_addr_mgmt_ep_sa(struct sctp_inpcb *, struct sockaddr *,
5854359Sroberto    uint16_t);
5954359Sroberto
6054359Srobertoextern void sctp_add_ip_address(struct ifaddr *);
61293650Sglebius
62293650Sglebiusextern void sctp_delete_ip_address(struct ifaddr *);
63293650Sglebius
64293650Sglebiusextern void sctp_addr_change(struct ifaddr *ifa, int cmd);
65293650Sglebius
6654359Srobertoextern int32_t
6754359Srobertosctp_set_primary_ip_address_sa(struct sctp_tcb *,
68285612Sdelphij    struct sockaddr *);
69285612Sdelphij
70285612Sdelphijextern void sctp_set_primary_ip_address(struct ifaddr *);
7154359Sroberto
7254359Srobertoextern void
73285612Sdelphijsctp_check_address_list(struct sctp_tcb *, struct mbuf *, int, int,
74285612Sdelphij    struct sockaddr *, uint16_t, uint16_t, uint16_t, uint16_t);
75285612Sdelphij
7654359Sroberto#endif				/* _KERNEL */
77285612Sdelphij
78285612Sdelphij#endif				/* !_NETINET_SCTP_ASCONF_H_ */
79285612Sdelphij