]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: add sctp_make_op_error_limited and reuse inner functions
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Sun, 29 Apr 2018 15:56:32 +0000 (12:56 -0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 May 2018 16:09:35 +0000 (12:09 -0400)
commit19584840db01a9f4cc38cce407ff2342dfcf6229
tree2945708f1ade9682bea346649ebe30ca77b9c165
parentf9d14181b4fa06cbf84de8376bc8e4c875a72f43
sctp: add sctp_make_op_error_limited and reuse inner functions

The idea is quite similar to the old functions, but note that the _fixed
function wasn't "fixed" as in that it would generate a packet with a fixed
size, but rather limited/bounded to PMTU.

Also, now with sctp_mtu_payload(), we have a more accurate limit.

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