path: root/iptables/nft.h
diff options
authorPhil Sutter <>2019-07-03 09:36:26 +0200
committerPablo Neira Ayuso <>2019-07-03 13:19:32 +0200
commit0afa33d532c3bd1bf54d7e764ac32619cd73e028 (patch)
tree27d13ae445972ba6eaab341714016c66716a06a7 /iptables/nft.h
parentcb27c59055fe077f0c422fdad2be71e1bdbb687f (diff)
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 <>
Diffstat (limited to 'iptables/nft.h')
1 files changed, 2 insertions, 0 deletions
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;