summaryrefslogtreecommitdiffstats
path: root/include/linux/sctp.h
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2017-08-03 03:42:21 -0400
committerDavid S. Miller <davem@davemloft.net>2017-08-03 12:45:47 -0400
commit96f7ef4d58100d7168e0c4d01a59fbd8589f5756 (patch)
tree39270cb3dd961d27b587976fda3c87499fdc817c /include/linux/sctp.h
parent68d75469468620c37cd58dc352f1dcec8c3896b6 (diff)
sctp: remove the typedef sctp_authhdr_t
This patch is to remove the typedef sctp_authhdr_t, and replace with struct sctp_authhdr 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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/sctp.h b/include/linux/sctp.h
index e7b439ed6371..b7603f5efebe 100644
--- a/include/linux/sctp.h
+++ b/include/linux/sctp.h
@@ -693,15 +693,15 @@ struct sctp_addip_chunk {
693 * HMAC: n bytes (unsigned integer) This hold the result of the HMAC 693 * HMAC: n bytes (unsigned integer) This hold the result of the HMAC
694 * calculation. 694 * calculation.
695 */ 695 */
696typedef struct sctp_authhdr { 696struct sctp_authhdr {
697 __be16 shkey_id; 697 __be16 shkey_id;
698 __be16 hmac_id; 698 __be16 hmac_id;
699 __u8 hmac[0]; 699 __u8 hmac[0];
700} sctp_authhdr_t; 700};
701 701
702typedef struct sctp_auth_chunk { 702typedef struct sctp_auth_chunk {
703 struct sctp_chunkhdr chunk_hdr; 703 struct sctp_chunkhdr chunk_hdr;
704 sctp_authhdr_t auth_hdr; 704 struct sctp_authhdr auth_hdr;
705} sctp_auth_chunk_t; 705} sctp_auth_chunk_t;
706 706
707struct sctp_infox { 707struct sctp_infox {