mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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>
This commit is contained in:
parent
68d7546946
commit
96f7ef4d58
2 changed files with 7 additions and 7 deletions
|
@ -693,15 +693,15 @@ struct sctp_addip_chunk {
|
|||
* HMAC: n bytes (unsigned integer) This hold the result of the HMAC
|
||||
* calculation.
|
||||
*/
|
||||
typedef struct sctp_authhdr {
|
||||
struct sctp_authhdr {
|
||||
__be16 shkey_id;
|
||||
__be16 hmac_id;
|
||||
__u8 hmac[0];
|
||||
} sctp_authhdr_t;
|
||||
};
|
||||
|
||||
typedef struct sctp_auth_chunk {
|
||||
struct sctp_chunkhdr chunk_hdr;
|
||||
sctp_authhdr_t auth_hdr;
|
||||
struct sctp_authhdr auth_hdr;
|
||||
} sctp_auth_chunk_t;
|
||||
|
||||
struct sctp_infox {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue