mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:41:42 +00:00
47505b8bcf
Based on 1 normalized pattern(s): 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 extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 42 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Richard Fontana <rfontana@redhat.com> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190523091649.683323110@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
47 lines
1.6 KiB
C
47 lines
1.6 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/* 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)
|
|
*
|
|
* 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;
|
|
__u16 ftsn_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);
|
|
void (*assign_number)(struct sctp_chunk *chunk);
|
|
bool (*validate_data)(struct sctp_chunk *chunk);
|
|
int (*ulpevent_data)(struct sctp_ulpq *ulpq,
|
|
struct sctp_chunk *chunk, gfp_t gfp);
|
|
int (*enqueue_event)(struct sctp_ulpq *ulpq,
|
|
struct sctp_ulpevent *event);
|
|
void (*renege_events)(struct sctp_ulpq *ulpq,
|
|
struct sctp_chunk *chunk, gfp_t gfp);
|
|
void (*start_pd)(struct sctp_ulpq *ulpq, gfp_t gfp);
|
|
void (*abort_pd)(struct sctp_ulpq *ulpq, gfp_t gfp);
|
|
/* (I-)FORWARD-TSN process */
|
|
void (*generate_ftsn)(struct sctp_outq *q, __u32 ctsn);
|
|
bool (*validate_ftsn)(struct sctp_chunk *chunk);
|
|
void (*report_ftsn)(struct sctp_ulpq *ulpq, __u32 ftsn);
|
|
void (*handle_ftsn)(struct sctp_ulpq *ulpq,
|
|
struct sctp_chunk *chunk);
|
|
};
|
|
|
|
void sctp_stream_interleave_init(struct sctp_stream *stream);
|
|
|
|
#endif /* __sctp_stream_interleave_h__ */
|