diff options
author | Paolo Abeni <pabeni@redhat.com> | 2019-10-30 13:17:25 +0100 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2019-11-08 20:27:31 +0000 |
commit | 1b11115ca758a4c98214118b75844576289900eb (patch) | |
tree | b22276070e4ea210c65c0d54c8e4e93b0a2ad54a /epan/dissectors/packet-tcp.h | |
parent | 71996e8d93b82ad25105f691d001188b5972d922 (diff) |
mptcp: add support for sha256 hashing.
MPTCP v1 switches the default/only hash function from sha1 to sha256.
Hash consistently according to the MP_CAPABLE version.
Additionally update MP_CAPABLE flag handling to show the correct
hash function name when dissecting v1 options.
Change-Id: I632c68541d8b1fba83864b4a478ad8b411dbf0fb
Reviewed-on: https://code.wireshark.org/review/35026
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
Diffstat (limited to 'epan/dissectors/packet-tcp.h')
-rw-r--r-- | epan/dissectors/packet-tcp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-tcp.h b/epan/dissectors/packet-tcp.h index dfee9cdeb4..38630d3a51 100644 --- a/epan/dissectors/packet-tcp.h +++ b/epan/dissectors/packet-tcp.h @@ -277,7 +277,8 @@ struct mptcp_subflow { typedef enum { MPTCP_HMAC_NOT_SET = 0, - MPTCP_HMAC_SHA1 = 1, + /* this is either SHA1 for MPTCP v0 or sha256 for MPTCP v1 */ + MPTCP_HMAC_SHA = 1, MPTCP_HMAC_LAST } mptcp_hmac_algorithm_t; |