diff options
author | Xin Long <lucien.xin@gmail.com> | 2021-06-22 14:04:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-22 11:28:51 -0700 |
commit | 745a32117b5a0799ce1dd28d5a74dc2b7bf37692 (patch) | |
tree | 5185d120079012222b201155fc27b596c94ccbf2 /include/net/sctp | |
parent | aff0824dc4d6ef5ee164c0e98e64d91731ca585b (diff) | |
download | linux-745a32117b5a0799ce1dd28d5a74dc2b7bf37692.tar.gz linux-745a32117b5a0799ce1dd28d5a74dc2b7bf37692.tar.bz2 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')
-rw-r--r-- | include/net/sctp/sm.h | 1 |
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, |