diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-12-03 18:38:59 -0500 | 
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-12-04 12:47:34 +0000 | 
| commit | 7aa65cfefcebc512e95e30f68e4aac7e9b36d46c (patch) | |
| tree | 4d221af040171b4957af7b1c88241a198e63b7b4 /lib/sockopt.h | |
| parent | 0b26493ea638b31ff52c8fc2e493dca5087658db (diff) | |
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 <sharpd@nvidia.com>
(cherry picked from commit d5615fd6f84e643f194be8c3e91343b35585eb9c)
Diffstat (limited to 'lib/sockopt.h')
| -rw-r--r-- | lib/sockopt.h | 4 | 
1 files changed, 2 insertions, 2 deletions
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);  | 
