mptcp: unify add_addr(6)_generate_hmac
authorGeliang Tang <geliangtang@gmail.com>
Wed, 7 Apr 2021 00:16:02 +0000 (17:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Apr 2021 21:09:40 +0000 (14:09 -0700)
commit761c124ed9698581e88d7babb9001401724435dd
tree3986378ce8d9b6bf7c92122c9b825da3b774ed0c
parent1b1a6ef597c7f662da847499d02ad519c1a8b1b3
mptcp: unify add_addr(6)_generate_hmac

The length of the IPv4 address is 4 octets and IPv6 is 16. That's the only
difference between add_addr_generate_hmac and add_addr6_generate_hmac.

This patch dropped the duplicate code and unify them into one.

Co-developed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/options.c