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)
commit8914f4bace3f3a56f14accb45f9f4b9456670b4a
tree2945708f1ade9682bea346649ebe30ca77b9c165
parent6d3e8aa87622b30bfabbbfad7674d2464f2a9cb9
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