summaryrefslogtreecommitdiff
path: root/include/linux/sctp.h
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2017-07-23 04:34:26 +0300
committerDavid S. Miller <davem@davemloft.net>2017-07-25 02:01:19 +0300
commitcb1844c47279fb59129f8a021a0b09bcf2011ad7 (patch)
treed5d8260832691acae71eb4dafd1b11a6bf096d1f /include/linux/sctp.h
parent56eda01d5348bd8b90fb32985b4b3d4b59c88ff2 (diff)
downloadlinux-cb1844c47279fb59129f8a021a0b09bcf2011ad7.tar.xz
sctp: remove the typedef sctp_initack_chunk_t
This patch is to remove the typedef sctp_initack_chunk_t, and replace with struct sctp_initack_chunk in the places where it's using this typedef. It is also to use sizeof(variable) instead of sizeof(type). Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/sctp.h')
-rw-r--r--include/linux/sctp.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/sctp.h b/include/linux/sctp.h
index 913474dfc96c..05c2099be537 100644
--- a/include/linux/sctp.h
+++ b/include/linux/sctp.h
@@ -336,7 +336,10 @@ struct sctp_hmac_algo_param {
* The INIT ACK chunk is used to acknowledge the initiation of an SCTP
* association.
*/
-typedef struct sctp_init_chunk sctp_initack_chunk_t;
+struct sctp_initack_chunk {
+ struct sctp_chunkhdr chunk_hdr;
+ struct sctp_inithdr init_hdr;
+};
/* Section 3.3.3.1 State Cookie (7) */
typedef struct sctp_cookie_param {