mptcp: unify ADD_ADDR and ADD_ADDR6 suboptions writing
authorGeliang Tang <geliangtang@gmail.com>
Wed, 9 Dec 2020 23:51:19 +0000 (15:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Dec 2020 03:02:15 +0000 (19:02 -0800)
commite1ef6832224aa62b36ba98a1a7c183e41962590c
treef11e9a6a796b2ad8139fb8b80aba7730bf1119d7
parent6eb3d1e350d1d166e6210a2abc310dbee5f03247
mptcp: unify ADD_ADDR and ADD_ADDR6 suboptions writing

The length of ADD_ADDR6 is 12 octets longer than ADD_ADDR. That's the
only difference between them.

This patch dropped the duplicate code between ADD_ADDR and ADD_ADDR6
suboptions writing, and unify them into one.

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