Re: Creating a map with libnftnl

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

 



Hi Kiernan,

On Thu, 30 Jun 2022 13:19:13 +0000
Kiernan George <kbg98@xxxxxx> wrote:

> Hi,
> 
> Is there an example for creating a map using libnftnl in the form of:
> 
> map name {
>                  type ipv4_addr . inet_service : ipv4_addr
> 
> }
> 
> 
> I see the example for creating a map in the form of:
> 
> map name {
>                  type inet_service : inet_service
>                  flags constant
>          }
> 
> I'm not sure how to extend this example to my use case. I thought I had 
> it working, but when I try to add an element manually, it gives me this 
> error:
> 
> invalid data type, expected concatenation of (IPv4 address)
> add element ip testtable testmap {1.1.1.1 . 20 : _2.2.2.2_}

Please specify:

- a listing of the presently defined map
- the command that was issued, verbatim
- the shell in use, if applicable

-- 
Kerin Millar




[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