]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: allow unsetting sockopt MAXSEG
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Thu, 26 Apr 2018 19:59:02 +0000 (16:59 -0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 18:35:24 +0000 (14:35 -0400)
commit707e7c983ce684bfd60a7e17b9c14c5494e12227
tree56ef91a153676cf598653f135975fabb58694018
parent53f7760f06aca79855dff890b0b472c459530f77
sctp: allow unsetting sockopt MAXSEG

RFC 6458 Section 8.1.16 says that setting MAXSEG as 0 means that the user
is not limiting it, and not that it should set to the *current* maximum,
as we are doing.

This patch thus allow setting it as 0, effectively removing the user
limit.

Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c