Skip to content

Commit

Permalink
mptcp: move MPTCPOPT_HMAC_LEN to net/mptcp.h
Browse files Browse the repository at this point in the history
Move macro MPTCPOPT_HMAC_LEN definition from net/mptcp/protocol.h to
include/net/mptcp.h.

Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Geliang Tang authored and David S. Miller committed Jul 9, 2022
1 parent 9f7cb73 commit f7657ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion include/net/mptcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ struct mptcp_ext {
infinite_map:1;
};

#define MPTCPOPT_HMAC_LEN 20
#define MPTCP_RM_IDS_MAX 8

struct mptcp_rm_list {
Expand Down Expand Up @@ -89,7 +90,7 @@ struct mptcp_out_options {
u32 nonce;
u32 token;
u64 thmac;
u8 hmac[20];
u8 hmac[MPTCPOPT_HMAC_LEN];
};
};
#endif
Expand Down
1 change: 0 additions & 1 deletion net/mptcp/protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@

/* MPTCP MP_JOIN flags */
#define MPTCPOPT_BACKUP BIT(0)
#define MPTCPOPT_HMAC_LEN 20
#define MPTCPOPT_THMAC_LEN 8

/* MPTCP MP_CAPABLE flags */
Expand Down

0 comments on commit f7657ff

Please sign in to comment.