Re: Can anybody help me add a vmap element in a dictionary

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 24, 2018 at 06:04:27PM +0100, Khawar Shehzad wrote:
> Hi,
> I am following this
> (https://git.netfilter.org/libnftnl/tree/examples/nft-set-elem-add.c)
> example to add a 'set' element in the nft set, but I am unable to add
> vmap element.
> 
> I want to do following using libnftnl
> 
> sudo nft add element ip6 natcap natcap_vmap { 2001:3:0:1::1 .
> 2001:4:0:1::2 : accept }
> 
> I will appreciate if somebody help me on this. I will be adding
> thousands of records in to nftables, so adding it using nft utitily is
> not giving the right performance. So it would be great if we can add
> verdict map elements using code.
> 
> My vmap is defined like the following
> 
> sudo nft add map ip6 natcap natcap_vmap { type ipv6_addr . ipv6_addr :
> verdict \; }

Could you post your example code? Something derived from
nft-set-elem-add.c should be fine for review.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux