summaryrefslogtreecommitdiff
path: root/net/packet
diff options
context:
space:
mode:
authorDavide Caratti <dcaratti@redhat.com>2021-03-15 13:41:16 +0300
committerDavid S. Miller <davem@davemloft.net>2021-03-16 02:43:01 +0300
commit13832ae2755395b2585500c85b64f5109a44227e (patch)
tree41bb2eba0204c32cd1a198d3e9bf8b5023473371 /net/packet
parent7233da86697efef41288f8b713c10c2499cffe85 (diff)
downloadlinux-13832ae2755395b2585500c85b64f5109a44227e.tar.xz
mptcp: fix ADD_ADDR HMAC in case port is specified
Currently, Linux computes the HMAC contained in ADD_ADDR sub-option using the Address Id and the IP Address, and hardcodes a destination port equal to zero. This is not ok for ADD_ADDR with port: ensure to account for the endpoint port when computing the HMAC, in compliance with RFC8684 ยง3.4.1. Fixes: 22fb85ffaefb ("mptcp: add port support for ADD_ADDR suboption writing") Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Acked-by: Geliang Tang <geliangtang@gmail.com> Signed-off-by: Davide Caratti <dcaratti@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet')
0 files changed, 0 insertions, 0 deletions