155682Smarkm/*-
2233294Sstas * SPDX-License-Identifier: BSD-3-Clause
3233294Sstas *
4233294Sstas * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved.
555682Smarkm * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved.
6233294Sstas * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved.
7233294Sstas *
8233294Sstas * Redistribution and use in source and binary forms, with or without
955682Smarkm * modification, are permitted provided that the following conditions are met:
10233294Sstas *
11233294Sstas * a) Redistributions of source code must retain the above copyright notice,
1255682Smarkm *    this list of conditions and the following disclaimer.
13233294Sstas *
14233294Sstas * b) Redistributions in binary form must reproduce the above copyright
15233294Sstas *    notice, this list of conditions and the following disclaimer in
1655682Smarkm *    the documentation and/or other materials provided with the distribution.
17233294Sstas *
18233294Sstas * c) Neither the name of Cisco Systems, Inc. nor the names of its
19233294Sstas *    contributors may be used to endorse or promote products derived
2055682Smarkm *    from this software without specific prior written permission.
21233294Sstas *
22233294Sstas * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23233294Sstas * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
24233294Sstas * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25233294Sstas * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26233294Sstas * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27233294Sstas * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28233294Sstas * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29233294Sstas * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30233294Sstas * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31233294Sstas * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
3255682Smarkm * THE POSSIBILITY OF SUCH DAMAGE.
3355682Smarkm */
3455682Smarkm
3555682Smarkm#ifndef _NETINET_SCTP_PEELOFF_H_
36233294Sstas#define _NETINET_SCTP_PEELOFF_H_
3755682Smarkm#if defined(_KERNEL)
38178825Sdfrint sctp_can_peel_off(struct socket *, sctp_assoc_t);
39178825Sdfrint sctp_do_peeloff(struct socket *, struct socket *, sctp_assoc_t);
4055682Smarkm#endif				/* _KERNEL */
4155682Smarkm#endif				/* _NETINET_SCTP_PEELOFF_H_ */
4255682Smarkm