summaryrefslogtreecommitdiffstats
path: root/include/net/sctp/sm.h
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2021-06-22 20:04:47 +0200
committerDavid S. Miller <davem@davemloft.net>2021-06-22 20:28:51 +0200
commit745a32117b5a0799ce1dd28d5a74dc2b7bf37692 (patch)
tree5185d120079012222b201155fc27b596c94ccbf2 /include/net/sctp/sm.h
parentnet: marvell: return csum computation result from mvneta_rx_csum/mvpp2_rx_csum (diff)
downloadlinux-745a32117b5a0799ce1dd28d5a74dc2b7bf37692.tar.xz
linux-745a32117b5a0799ce1dd28d5a74dc2b7bf37692.zip
sctp: add pad chunk and its make function and event table
This chunk is defined in rfc4820#section-3, and used to pad an SCTP packet. The receiver must discard this chunk and continue processing the rest of the chunks in the packet. Add it now, as it will be bundled with a heartbeat chunk to probe pmtu in the following patches. 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>
Diffstat (limited to 'include/net/sctp/sm.h')
-rw-r--r--include/net/sctp/sm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/sctp/sm.h b/include/net/sctp/sm.h
index fd223c94589a..09c59154634d 100644
--- a/include/net/sctp/sm.h
+++ b/include/net/sctp/sm.h
@@ -230,6 +230,7 @@ struct sctp_chunk *sctp_make_heartbeat_ack(const struct sctp_association *asoc,
const struct sctp_chunk *chunk,
const void *payload,
const size_t paylen);
+struct sctp_chunk *sctp_make_pad(const struct sctp_association *asoc, int len);
struct sctp_chunk *sctp_make_op_error(const struct sctp_association *asoc,
const struct sctp_chunk *chunk,
__be16 cause_code, const void *payload,