summaryrefslogtreecommitdiff
path: root/lib/vty.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-12-03 18:49:59 -0500
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-12-04 12:47:35 +0000
commit16bb1dd5b0343f03ae2fd455eeaebdaf89ec9ebc (patch)
tree75d14a22657e5e4d72d232cf99b61b81c069b4e4 /lib/vty.h
parent7aa65cfefcebc512e95e30f68e4aac7e9b36d46c (diff)
lib,vtysh: Use backoff setsockopt option for freebsd
Commit: 9112fb367b1ae0168b4e7a81f41c2ca621979199 Introduced the idea of setting the socket buffer send/receive sizes. BSD's in general have the fun issue of not allowing nearly as large as a size as linux. Since the above commit was developed on linux and not run on bsd it was never tested. Modify the codebase to use the backoff setsockopt that we have in the code base and use the returned values to allow us to notice what was set and respond appropriately. Signed-off-by: Donald Sharp <sharpd@nvidia.com> (cherry picked from commit 959dbe27cde21ab212f6566b30865b2da418b4d2)
Diffstat (limited to 'lib/vty.h')
-rw-r--r--lib/vty.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/vty.h b/lib/vty.h
index e511e8e79a..be54159aa9 100644
--- a/lib/vty.h
+++ b/lib/vty.h
@@ -237,6 +237,9 @@ struct vty {
bool mgmt_locked_candidate_ds;
bool mgmt_locked_running_ds;
uint64_t vty_buf_size_accumulated;
+
+ int buf_size_set;
+ uint64_t buf_size_intermediate;
};
static inline void vty_push_context(struct vty *vty, int node, uint64_t id)