xref: /freebsd-src/sys/netinet6/sctp6_var.h (revision c3179e6660e1365111b89cb6c05c3a4c47375e73)
1f8829a4aSRandall Stewart /*-
251369649SPedro F. Giffuni  * SPDX-License-Identifier: BSD-3-Clause
351369649SPedro F. Giffuni  *
4b1006367SRandall Stewart  * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved.
5807aad63SMichael Tuexen  * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved.
6807aad63SMichael Tuexen  * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved.
7f8829a4aSRandall Stewart  *
8f8829a4aSRandall Stewart  * Redistribution and use in source and binary forms, with or without
9f8829a4aSRandall Stewart  * modification, are permitted provided that the following conditions are met:
10f8829a4aSRandall Stewart  *
11f8829a4aSRandall Stewart  * a) Redistributions of source code must retain the above copyright notice,
12f8829a4aSRandall Stewart  *    this list of conditions and the following disclaimer.
13f8829a4aSRandall Stewart  *
14f8829a4aSRandall Stewart  * b) Redistributions in binary form must reproduce the above copyright
15f8829a4aSRandall Stewart  *    notice, this list of conditions and the following disclaimer in
16f8829a4aSRandall Stewart  *    the documentation and/or other materials provided with the distribution.
17f8829a4aSRandall Stewart  *
18f8829a4aSRandall Stewart  * c) Neither the name of Cisco Systems, Inc. nor the names of its
19f8829a4aSRandall Stewart  *    contributors may be used to endorse or promote products derived
20f8829a4aSRandall Stewart  *    from this software without specific prior written permission.
21f8829a4aSRandall Stewart  *
22f8829a4aSRandall Stewart  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23f8829a4aSRandall Stewart  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
24f8829a4aSRandall Stewart  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25f8829a4aSRandall Stewart  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26f8829a4aSRandall Stewart  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27f8829a4aSRandall Stewart  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28f8829a4aSRandall Stewart  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29f8829a4aSRandall Stewart  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30f8829a4aSRandall Stewart  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31f8829a4aSRandall Stewart  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
32f8829a4aSRandall Stewart  * THE POSSIBILITY OF SUCH DAMAGE.
33f8829a4aSRandall Stewart  */
34b48287a3SDavid E. O'Brien 
35807aad63SMichael Tuexen #ifndef _NETINET6_SCTP6_VAR_H_
36807aad63SMichael Tuexen #define _NETINET6_SCTP6_VAR_H_
37807aad63SMichael Tuexen 
38f8829a4aSRandall Stewart #if defined(_KERNEL)
39f8829a4aSRandall Stewart 
40f8829a4aSRandall Stewart SYSCTL_DECL(_net_inet6_sctp6);
41e7d02be1SGleb Smirnoff extern struct protosw sctp6_seqpacket_protosw, sctp6_stream_protosw;
42f8829a4aSRandall Stewart 
436f56329aSXin LI int sctp6_input(struct mbuf **, int *, int);
443a51a264SMichael Tuexen int sctp6_input_with_port(struct mbuf **, int *, uint16_t);
4521f67da7SMichael Tuexen int
4621f67da7SMichael Tuexen sctp6_output(struct sctp_inpcb *, struct mbuf *, struct sockaddr *,
476f56329aSXin LI     struct mbuf *, struct proc *);
48*43d39ca7SGleb Smirnoff ip6proto_ctlinput_t sctp6_ctlinput;
49b9dd6a90SMichael Tuexen void
50b9dd6a90SMichael Tuexen sctp6_notify(struct sctp_inpcb *, struct sctp_tcb *, struct sctp_nets *,
516ebfa5eeSMichael Tuexen     uint8_t, uint8_t, uint32_t);
5221f67da7SMichael Tuexen #endif
53f8829a4aSRandall Stewart #endif
54