mptcp: add MSG_PEEK support
authorYonglong Li <liyonglong@chinatelecom.cn>
Fri, 23 Apr 2021 18:17:08 +0000 (11:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Apr 2021 21:06:32 +0000 (14:06 -0700)
commitca4fb892579f110d3ab4865eb2aef36be7683a7c
tree55284c6f20d8a40350974208b61c11e03b216e25
parent987858e5d026d355535b34f17c6ceeb1d71ccf75
mptcp: add MSG_PEEK support

This patch adds support for MSG_PEEK flag. Packets are not removed
from the receive_queue if MSG_PEEK set in recv() system call.

Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Yonglong Li <liyonglong@chinatelecom.cn>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c