summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2020-12-10 23:25:01 +0100
committerJakub Kicinski <kuba@kernel.org>2020-12-15 02:30:06 +0100
commitba34c3de71ced1582dee55f2fae8638a3655d957 (patch)
tree97729bb98ab659af4b7d185928afc6e7f79a58bd /net
parentselftests: mptcp: add the flush addrs testcase (diff)
downloadlinux-ba34c3de71ced1582dee55f2fae8638a3655d957.tar.xz
linux-ba34c3de71ced1582dee55f2fae8638a3655d957.zip
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 <geliangtang@gmail.com> Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net')
-rw-r--r--net/mptcp/protocol.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mptcp/protocol.h b/net/mptcp/protocol.h
index f6c3c686a34a..a5bc9599ae5c 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,