netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sctp doesn't honour net.ipv6.bindv6only
@ 2020-05-19 10:47 David Laight
  2020-05-19 19:47 ` Marcelo Ricardo Leitner
  0 siblings, 1 reply; 3+ messages in thread
From: David Laight @ 2020-05-19 10:47 UTC (permalink / raw)
  To: netdev@vger.kernel.org, linux-sctp@vger.kernel.org
  Cc: Neil Horman, Marcelo Ricardo Leitner

The sctp code doesn't use sk->sk_ipv6only (which is initialised
from net.ipv6.bindv6only) but instead uses its own flag
sp->v4mapped which always defaults to 1.

There may also be an expectation that
  [gs]etsockopt(sctp_fd, IPPROTO_IPV6, IPV6_V6ONLY,...)
will access the flag that sctp uses internally.
(Matching TCP and UDP.)

Patch is trivial (remembering the inverted state)
but I don't have a clean enough source tree :-(

	David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)


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

end of thread, other threads:[~2020-05-20  9:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-19 10:47 sctp doesn't honour net.ipv6.bindv6only David Laight
2020-05-19 19:47 ` Marcelo Ricardo Leitner
2020-05-20  9:10   ` David Laight

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).