From: Geliang Tang Date: Thu, 10 Dec 2020 22:25:01 +0000 (-0800) Subject: mptcp: use MPTCPOPT_HMAC_LEN macro X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ba34c3de71ced1582dee55f2fae8638a3655d957;p=linux.git mptcp: use MPTCPOPT_HMAC_LEN macro Use the macro MPTCPOPT_HMAC_LEN instead of a constant in struct mptcp_options_received. Signed-off-by: Geliang Tang Signed-off-by: Mat Martineau Signed-off-by: Jakub Kicinski --- diff --git a/net/mptcp/protocol.h b/net/mptcp/protocol.h index f6c3c686a34ab..a5bc9599ae5c6 100644 --- a/net/mptcp/protocol.h +++ b/net/mptcp/protocol.h @@ -119,7 +119,7 @@ struct mptcp_options_received { u32 token; u32 nonce; u64 thmac; - u8 hmac[20]; + u8 hmac[MPTCPOPT_HMAC_LEN]; u8 join_id; u8 use_map:1, dsn64:1,