1232809Sjmallett/*- 2232809Sjmallett * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved. 3232809Sjmallett * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved. 4232809Sjmallett * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved. 5232809Sjmallett * 6232809Sjmallett * Redistribution and use in source and binary forms, with or without 7232809Sjmallett * modification, are permitted provided that the following conditions are met: 8232809Sjmallett * 9232809Sjmallett * a) Redistributions of source code must retain the above copyright notice, 10232809Sjmallett * this list of conditions and the following disclaimer. 11232809Sjmallett * 12232809Sjmallett * b) Redistributions in binary form must reproduce the above copyright 13232809Sjmallett * notice, this list of conditions and the following disclaimer in 14232809Sjmallett * the documentation and/or other materials provided with the distribution. 15232809Sjmallett * 16232809Sjmallett * c) Neither the name of Cisco Systems, Inc. nor the names of its 17232809Sjmallett * contributors may be used to endorse or promote products derived 18232809Sjmallett * from this software without specific prior written permission. 19232809Sjmallett * 20232809Sjmallett * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21232809Sjmallett * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 22232809Sjmallett * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23232809Sjmallett * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 24232809Sjmallett * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25232809Sjmallett * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26232809Sjmallett * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27232809Sjmallett * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28232809Sjmallett * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29232809Sjmallett * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30232809Sjmallett * THE POSSIBILITY OF SUCH DAMAGE. 31232809Sjmallett */ 32232809Sjmallett 33232809Sjmallett#include <sys/cdefs.h> 34232809Sjmallett__FBSDID("$FreeBSD$"); 35232809Sjmallett 36232809Sjmallett#ifndef _NETINET_SCTP_INPUT_H_ 37232809Sjmallett#define _NETINET_SCTP_INPUT_H_ 38232809Sjmallett 39232809Sjmallett#if defined(_KERNEL) || defined(__Userspace__) 40232809Sjmallettvoid 41232809Sjmallettsctp_common_input_processing(struct mbuf **, int, int, int, 42232809Sjmallett struct sockaddr *, struct sockaddr *, 43232809Sjmallett struct sctphdr *, struct sctp_chunkhdr *, 44232809Sjmallett#if !defined(SCTP_WITH_NO_CSUM) 45232809Sjmallett uint8_t, 46232809Sjmallett#endif 47232809Sjmallett uint8_t, 48232809Sjmallett uint8_t, uint32_t, uint16_t, 49232809Sjmallett uint32_t, uint16_t); 50232809Sjmallett 51232809Sjmallettstruct sctp_stream_reset_request * 52232809Sjmallettsctp_find_stream_reset(struct sctp_tcb *stcb, uint32_t seq, 53232809Sjmallett struct sctp_tmit_chunk **bchk); 54232809Sjmallett 55232809Sjmallettvoid 56232809Sjmallettsctp_reset_in_stream(struct sctp_tcb *stcb, uint32_t number_entries, 57232809Sjmallett uint16_t * list); 58232809Sjmallett 59232809Sjmallett 60232809Sjmallettint sctp_is_there_unsent_data(struct sctp_tcb *stcb, int so_locked); 61232809Sjmallett 62232809Sjmallett#endif 63232809Sjmallett#endif 64232809Sjmallett