All of lore.kernel.org
 help / color / mirror / Atom feed
* SCTP recvmsg MSG_TRUNC or something similar
@ 2019-07-24 13:46 Luci Stanescu
  2019-07-25  1:21 ` Marcelo Ricardo Leitner
  2019-07-25  9:53 ` Luci Stanescu
  0 siblings, 2 replies; 3+ messages in thread
From: Luci Stanescu @ 2019-07-24 13:46 UTC (permalink / raw)
  To: linux-sctp

Hi,

I’m not sure this is the right place to ask this kind of question, but, having not found a better forum, I’m trying my luck. Apologies in advance if this is outside the scope of the mailing list.

That being said, my question is: given a successful return of recvmsg() for a SOCK_SEQPACKET SCTP socket, is there no stateless way to determine if the read data, for which the MSG_EOR flag is set, is the trailing “fragment” of a larger record (either due to partial delivery or an insufficient buffer passed to a prior call to recvmsg() which returned with the MSG_EOR flag cleared), rather than a “full” message?

From what I can tell, MSG_TRUNC, which would’ve solved my issue, isn’t implemented for SCTP. Regarding this topic, I’ve only found old discussions, including some suggestions to add SOCK_RDM, which never materialised.

Many thanks for your time!

Luci

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-25  9:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-24 13:46 SCTP recvmsg MSG_TRUNC or something similar Luci Stanescu
2019-07-25  1:21 ` Marcelo Ricardo Leitner
2019-07-25  9:53 ` Luci Stanescu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.