[Dnsmasq-discuss] [PATCH v2] Add nftables set support

Chen Zhenge me at markle.one
Sun Sep 26 07:57:29 UTC 2021


On 8/22/21 20:57, Chen Zhenge wrote:
> This patch adds a new option --nftset, which is the same as --ipset 
> except that it adds IP address to a given nftables set. It uses 
> libnftables to perform the operations.


The v2 patch has the following changes compared with v1:

1. Use '<family>#<table>#<name>' instead of '<family> <table> <name>' 
for nftable set. This makes using --nftset option at command line more 
convenient.

2. Make nftset support disabled by default, because it requires linking 
against libnftables.


The complete patch is attached below.


---

Best,

Chen Zhenge


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Change-nft-set-syntax.patch
Type: text/x-patch
Size: 4160 bytes
Desc: not available
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20210926/003c79d3/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-nftables-set-support.patch
Type: text/x-patch
Size: 19235 bytes
Desc: not available
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20210926/003c79d3/attachment-0003.bin>


More information about the Dnsmasq-discuss mailing list