linux-sctp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH lksctp-tools] func_tests: add a reference to Issue 24
@ 2018-05-09  2:14 Marcelo Ricardo Leitner
  2018-05-09 19:01 ` Marcelo Ricardo Leitner
  0 siblings, 1 reply; 2+ messages in thread
From: Marcelo Ricardo Leitner @ 2018-05-09  2:14 UTC (permalink / raw)
  To: linux-sctp

We extended struct sctp_event_subscribe in the kernel UAPI. The change
itself would have been backwards compatible if only the kernel was doing
the right size check, as described at Issue 24.

That said, place a pointer to the known issue in the code to ease it for
who else trip over this.

See-also: https://github.com/sctp/lksctp-tools/issues/24
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
---
Note: kernel is not yet fixed. Draft patch is available at the issue
page.

 src/func_tests/test_1_to_1_events.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/func_tests/test_1_to_1_events.c b/src/func_tests/test_1_to_1_events.c
index 352534680610248382f8ce6aebe7f97aa49283af..5c0dcc0341efb92ea0e253dabecdc8541b201651 100644
--- a/src/func_tests/test_1_to_1_events.c
+++ b/src/func_tests/test_1_to_1_events.c
@@ -96,6 +96,9 @@ main(int argc, char *argv[])
 	event.sctp_association_event = 1;
 	event.sctp_shutdown_event = 1;
 	len = sizeof(struct sctp_event_subscribe);
+	/* The below may fail due to:
+	 *   - https://github.com/sctp/lksctp-tools/issues/24
+	 */
 	test_setsockopt(svr_sk, SCTP_EVENTS, &event, len);
 	test_setsockopt(clt_sk, SCTP_EVENTS, &event, len);

--
2.14.3


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

* Re: [PATCH lksctp-tools] func_tests: add a reference to Issue 24
  2018-05-09  2:14 [PATCH lksctp-tools] func_tests: add a reference to Issue 24 Marcelo Ricardo Leitner
@ 2018-05-09 19:01 ` Marcelo Ricardo Leitner
  0 siblings, 0 replies; 2+ messages in thread
From: Marcelo Ricardo Leitner @ 2018-05-09 19:01 UTC (permalink / raw)
  To: linux-sctp

On Tue, May 08, 2018 at 11:14:06PM -0300, Marcelo Ricardo Leitner wrote:
> We extended struct sctp_event_subscribe in the kernel UAPI. The change
> itself would have been backwards compatible if only the kernel was doing
> the right size check, as described at Issue 24.
>
> That said, place a pointer to the known issue in the code to ease it for
> who else trip over this.
>
> See-also: https://github.com/sctp/lksctp-tools/issues/24
> Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
> ---
> Note: kernel is not yet fixed. Draft patch is available at the issue
> page.
>
>  src/func_tests/test_1_to_1_events.c | 3 +++

Self-nack.

There are other tests issuing this setsockopt() call, and updating all
of them doesn't seem worth.

func_tests]$ git grep -lw SCTP_EVENTS
test_1_to_1_events.c
test_sctp_sendrecvmsg.c
test_sockopt.c
test_timetolive.c
func_tests]$

  Marcelo

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

end of thread, other threads:[~2018-05-09 19:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-09  2:14 [PATCH lksctp-tools] func_tests: add a reference to Issue 24 Marcelo Ricardo Leitner
2018-05-09 19:01 ` Marcelo Ricardo Leitner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).