]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0e4b98de828ac819386274615ba3ffb3bba3d96e
tree55284c6f20d8a40350974208b61c11e03b216e25
parente633dc67637d0a28a35810502d04fc6d5623ef1d
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