]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: extract sctp_v4_err_handle function from sctp_v4_err
authorXin Long <lucien.xin@gmail.com>
Tue, 22 Jun 2021 18:04:59 +0000 (14:04 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Jun 2021 18:28:52 +0000 (11:28 -0700)
commitd83060759a652ccb64d7486fe38c8347b4a64048
treeda2967c8b668b3716e3bfcf2f2b0bdf3be46c8bb
parentf6549bd37b927655c6fecad88428a731cd8a4a34
sctp: extract sctp_v4_err_handle function from sctp_v4_err

This patch is to extract sctp_v4_err_handle() from sctp_v4_err() to
only handle the icmp err after the sock lookup, and it also makes
the code clearer.

sctp_v4_err_handle() will be used in sctp over udp's err handling
in the following patch.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/input.c