1163953Srrs/*-
2169382Srrs * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved.
3235828Stuexen * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved.
4235828Stuexen * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved.
5163953Srrs *
6163953Srrs * Redistribution and use in source and binary forms, with or without
7163953Srrs * modification, are permitted provided that the following conditions are met:
8163953Srrs *
9163953Srrs * a) Redistributions of source code must retain the above copyright notice,
10228653Stuexen *    this list of conditions and the following disclaimer.
11163953Srrs *
12163953Srrs * b) Redistributions in binary form must reproduce the above copyright
13163953Srrs *    notice, this list of conditions and the following disclaimer in
14228653Stuexen *    the documentation and/or other materials provided with the distribution.
15163953Srrs *
16163953Srrs * c) Neither the name of Cisco Systems, Inc. nor the names of its
17163953Srrs *    contributors may be used to endorse or promote products derived
18163953Srrs *    from this software without specific prior written permission.
19163953Srrs *
20163953Srrs * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21163953Srrs * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22163953Srrs * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23163953Srrs * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
24163953Srrs * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25163953Srrs * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26163953Srrs * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27163953Srrs * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28163953Srrs * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29163953Srrs * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30163953Srrs * THE POSSIBILITY OF SUCH DAMAGE.
31163953Srrs */
32163953Srrs
33163953Srrs#include <sys/cdefs.h>
34163953Srrs__FBSDID("$FreeBSD: stable/11/sys/netinet/sctp_input.h 347154 2019-05-05 12:28:39Z tuexen $");
35163953Srrs
36235828Stuexen#ifndef _NETINET_SCTP_INPUT_H_
37235828Stuexen#define _NETINET_SCTP_INPUT_H_
38163953Srrs
39180387Srrs#if defined(_KERNEL) || defined(__Userspace__)
40169378Srrsvoid
41163953Srrssctp_common_input_processing(struct mbuf **, int, int, int,
42237715Stuexen    struct sockaddr *, struct sockaddr *,
43237049Stuexen    struct sctphdr *, struct sctp_chunkhdr *,
44238003Stuexen    uint8_t,
45238003Stuexen    uint8_t,
46284515Stuexen    uint8_t, uint32_t, uint16_t,
47237049Stuexen    uint32_t, uint16_t);
48163953Srrs
49273168Stuexenstruct sctp_stream_reset_request *
50169352Srrssctp_find_stream_reset(struct sctp_tcb *stcb, uint32_t seq,
51169352Srrs    struct sctp_tmit_chunk **bchk);
52163953Srrs
53347154Stuexenvoid
54240198Stuexensctp_reset_in_stream(struct sctp_tcb *stcb, uint32_t number_entries,
55310773Stuexen    uint16_t *list);
56163953Srrs
57171158Srrs
58221627Stuexenint sctp_is_there_unsent_data(struct sctp_tcb *stcb, int so_locked);
59171158Srrs
60163953Srrs#endif
61163953Srrs#endif
62