From 0afa33d532c3bd1bf54d7e764ac32619cd73e028 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 3 Jul 2019 09:36:26 +0200 Subject: nft: Move send/receive buffer sizes into nft_handle Store them next to the mnl_socket pointer. While being at it, add a comment to mnl_set_rcvbuffer() explaining why the buffer size is changed. Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- iptables/nft.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'iptables/nft.h') diff --git a/iptables/nft.h b/iptables/nft.h index 43eb8a39..dc116184 100644 --- a/iptables/nft.h +++ b/iptables/nft.h @@ -38,6 +38,8 @@ struct nft_cache { struct nft_handle { int family; struct mnl_socket *nl; + int nlsndbuffsiz; + int nlrcvbuffsiz; uint32_t portid; uint32_t seq; uint32_t nft_genid; -- cgit v1.2.3