1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 #ifndef __sctp_stream_interleave_h__
17 #define __sctp_stream_interleave_h__
18
19 struct sctp_stream_interleave {
20 __u16 data_chunk_len;
21 __u16 ftsn_chunk_len;
22
23 struct sctp_chunk *(*make_datafrag)(const struct sctp_association *asoc,
24 const struct sctp_sndrcvinfo *sinfo,
25 int len, __u8 flags, gfp_t gfp);
26 void (*assign_number)(struct sctp_chunk *chunk);
27 bool (*validate_data)(struct sctp_chunk *chunk);
28 int (*ulpevent_data)(struct sctp_ulpq *ulpq,
29 struct sctp_chunk *chunk, gfp_t gfp);
30 int (*enqueue_event)(struct sctp_ulpq *ulpq,
31 struct sctp_ulpevent *event);
32 void (*renege_events)(struct sctp_ulpq *ulpq,
33 struct sctp_chunk *chunk, gfp_t gfp);
34 void (*start_pd)(struct sctp_ulpq *ulpq, gfp_t gfp);
35 void (*abort_pd)(struct sctp_ulpq *ulpq, gfp_t gfp);
36
37 void (*generate_ftsn)(struct sctp_outq *q, __u32 ctsn);
38 bool (*validate_ftsn)(struct sctp_chunk *chunk);
39 void (*report_ftsn)(struct sctp_ulpq *ulpq, __u32 ftsn);
40 void (*handle_ftsn)(struct sctp_ulpq *ulpq,
41 struct sctp_chunk *chunk);
42 };
43
44 void sctp_stream_interleave_init(struct sctp_stream *stream);
45
46 #endif