mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-16 19:16:56 +00:00

Replace setsockopt() calls with calls to functions that follow setsockopt() with getsockopt() and check that the returned value and its size are the same as have been set. (Except in vsock_perf.) Signed-off-by: Konstantin Shkolnyy <kshk@linux.ibm.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
18 lines
325 B
C
18 lines
325 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef MSG_ZEROCOPY_COMMON_H
|
|
#define MSG_ZEROCOPY_COMMON_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
#ifndef SOL_VSOCK
|
|
#define SOL_VSOCK 287
|
|
#endif
|
|
|
|
#ifndef VSOCK_RECVERR
|
|
#define VSOCK_RECVERR 1
|
|
#endif
|
|
|
|
void vsock_recv_completion(int fd, const bool *zerocopied);
|
|
|
|
#endif /* MSG_ZEROCOPY_COMMON_H */
|