From 7aa65cfefcebc512e95e30f68e4aac7e9b36d46c Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 3 Dec 2024 18:38:59 -0500 Subject: lib: Allow setsockopt functions to return size set When finding a send/receive buffer size that is usable let's report how big we were able to set it. Signed-off-by: Donald Sharp (cherry picked from commit d5615fd6f84e643f194be8c3e91343b35585eb9c) --- lib/sockopt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sockopt.h') diff --git a/lib/sockopt.h b/lib/sockopt.h index e6fb78d5e4..cbf988cbe7 100644 --- a/lib/sockopt.h +++ b/lib/sockopt.h @@ -12,8 +12,8 @@ extern "C" { #endif -extern void setsockopt_so_recvbuf(int sock, int size); -extern void setsockopt_so_sendbuf(const int sock, int size); +extern int setsockopt_so_recvbuf(int sock, int size); +extern int setsockopt_so_sendbuf(const int sock, int size); extern int getsockopt_so_sendbuf(const int sock); extern int getsockopt_so_recvbuf(const int sock); -- cgit v1.2.3