]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: use rightmost 64 bits in ADD_ADDR HMAC
authorTodd Malsbary <todd.malsbary@linux.intel.com>
Tue, 19 May 2020 16:45:34 +0000 (09:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 May 2020 19:35:51 +0000 (12:35 -0700)
commit47236da746c31073017f929f6f61177097b166f2
tree34581175c8c7f3ebccb4bd52f8ed35e7c50c108f
parentba732da8fe42f4233c3479414cb2e00d4d727ff2
mptcp: use rightmost 64 bits in ADD_ADDR HMAC

This changes the HMAC used in the ADD_ADDR option from the leftmost 64
bits to the rightmost 64 bits as described in RFC 8684, section 3.4.1.

This issue was discovered while adding support to packetdrill for the
ADD_ADDR v1 option.

Fixes: 13f6e07a1f91 ("mptcp: Add ADD_ADDR handling")
Signed-off-by: Todd Malsbary <todd.malsbary@linux.intel.com>
Acked-by: Christoph Paasch <cpaasch@apple.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/options.c