Thread (32 messages) flat view 32 messages, 6 authors, 2018-08-11

Re: [PATCH v2 1/2] net/sctp: Make wrappers for accessing in/out streams

From: Konstantin Khorenko <hidden>
Date: 2018-08-09 11:02:56
Also in: linux-sctp

On 08/03/2018 10:50 PM, David Miller wrote:
From: Konstantin Khorenko <redacted>
Date: Fri,  3 Aug 2018 19:21:01 +0300
quoted
+struct sctp_stream_out *sctp_stream_out(const struct sctp_stream *stream,
+					__u16 sid)
+{
+	return ((struct sctp_stream_out *)(stream->out)) + sid;
+}
+
+struct sctp_stream_in *sctp_stream_in(const struct sctp_stream *stream,
+				      __u16 sid)
+{
+	return ((struct sctp_stream_in *)(stream->in)) + sid;
+}
I agree with David that these should be in a header file, and marked
inline.
David and David,

sure, will move them, thank you!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help