diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-12-03 18:49:59 -0500 | 
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-12-04 12:47:35 +0000 | 
| commit | 16bb1dd5b0343f03ae2fd455eeaebdaf89ec9ebc (patch) | |
| tree | 75d14a22657e5e4d72d232cf99b61b81c069b4e4 /lib/vty.h | |
| parent | 7aa65cfefcebc512e95e30f68e4aac7e9b36d46c (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.h | 3 | 
1 files changed, 3 insertions, 0 deletions
@@ -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)  | 
