]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: honor PMTU_DISABLED when handling icmp
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Thu, 26 Apr 2018 19:59:00 +0000 (16:59 -0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 18:35:23 +0000 (14:35 -0400)
commit6cb30f408adbebbefc334800b6dbe5df1b750b7c
tree6a703e3dcaee07f27eb5c09dd19d0e9e59e48633
parent5861e99b9c0769e65829371476fea3488c867d88
sctp: honor PMTU_DISABLED when handling icmp

sctp_sendmsg() could trigger PMTU updates even when PMTU_DISABLED was
set, as pmtu_pending could be set unconditionally during icmp handling
if the socket was in use by the application.

This patch fixes it by checking for PMTU_DISABLED when handling such
deferred updates.

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