summaryrefslogtreecommitdiff
path: root/sysdep/linux/krt-sys.h
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2022-01-17 05:11:29 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2022-01-17 05:11:29 +0100
commit81ee6cda2e60bbd3d97ab63da30657a54b09feda (patch)
tree489b94cd4d6a71f9117fc167c0b6ebc50a184376 /sysdep/linux/krt-sys.h
parentbbc33f6ec310d98b9100fb883a2b8908ede1b5a8 (diff)
Netlink: Add option to specify netlink socket receive buffer size
Add option 'netlink rx buffer' to specify netlink socket receive buffer size. Uses SO_RCVBUFFORCE, so it can override rmem_max limit. Thanks to Trisha Biswas and Michal for the original patches.
Diffstat (limited to 'sysdep/linux/krt-sys.h')
-rw-r--r--sysdep/linux/krt-sys.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdep/linux/krt-sys.h b/sysdep/linux/krt-sys.h
index a8af4c95..8897f889 100644
--- a/sysdep/linux/krt-sys.h
+++ b/sysdep/linux/krt-sys.h
@@ -69,6 +69,7 @@ static inline struct ifa * kif_get_primary_ip(struct iface *i UNUSED) { return N
struct krt_params {
u32 table_id; /* Kernel table ID we sync with */
u32 metric; /* Kernel metric used for all routes */
+ uint netlink_rx_buffer; /* Rx buffer size for the netlink socket */
};
struct krt_state {