2017-12-08 21:04:01 +08:00
|
|
|
/* SCTP kernel implementation
|
|
|
|
* (C) Copyright Red Hat Inc. 2017
|
|
|
|
*
|
|
|
|
* These are definitions used by the stream schedulers, defined in RFC
|
|
|
|
* draft ndata (https://tools.ietf.org/html/draft-ietf-tsvwg-sctp-ndata-11)
|
|
|
|
*
|
|
|
|
* This SCTP implementation is free software;
|
|
|
|
* you can redistribute it and/or modify it under the terms of
|
|
|
|
* the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This SCTP implementation is distributed in the hope that it
|
|
|
|
* will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
|
|
|
* ************************
|
|
|
|
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
* See the GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with GNU CC; see the file COPYING. If not, see
|
|
|
|
* <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
* Please send any bug reports or fixes you make to the
|
|
|
|
* email addresses:
|
|
|
|
* lksctp developers <linux-sctp@vger.kernel.org>
|
|
|
|
*
|
|
|
|
* Written or modified by:
|
|
|
|
* Xin Long <lucien.xin@gmail.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __sctp_stream_interleave_h__
|
|
|
|
#define __sctp_stream_interleave_h__
|
|
|
|
|
|
|
|
struct sctp_stream_interleave {
|
|
|
|
__u16 data_chunk_len;
|
|
|
|
/* (I-)DATA process */
|
|
|
|
struct sctp_chunk *(*make_datafrag)(const struct sctp_association *asoc,
|
|
|
|
const struct sctp_sndrcvinfo *sinfo,
|
|
|
|
int len, __u8 flags, gfp_t gfp);
|
2017-12-08 21:04:02 +08:00
|
|
|
void (*assign_number)(struct sctp_chunk *chunk);
|
2017-12-08 21:04:03 +08:00
|
|
|
bool (*validate_data)(struct sctp_chunk *chunk);
|
2017-12-08 21:04:04 +08:00
|
|
|
int (*ulpevent_data)(struct sctp_ulpq *ulpq,
|
|
|
|
struct sctp_chunk *chunk, gfp_t gfp);
|
2017-12-08 21:04:05 +08:00
|
|
|
int (*enqueue_event)(struct sctp_ulpq *ulpq,
|
|
|
|
struct sctp_ulpevent *event);
|
2017-12-08 21:04:06 +08:00
|
|
|
void (*renege_events)(struct sctp_ulpq *ulpq,
|
|
|
|
struct sctp_chunk *chunk, gfp_t gfp);
|
2017-12-08 21:04:07 +08:00
|
|
|
void (*start_pd)(struct sctp_ulpq *ulpq, gfp_t gfp);
|
2017-12-08 21:04:01 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
void sctp_stream_interleave_init(struct sctp_stream *stream);
|
|
|
|
|
|
|
|
#endif /* __sctp_stream_interleave_h__ */
|