Re: Creating a map with libnftnl

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

 



On Thu, 30 Jun 2022 15:18:54 +0000
Kiernan George <kbg98@xxxxxx> wrote:

> Hi Kerin,
> 
> My current ruleset is:
> 
> table netdev testtable {
>          map testmap {
>                  type ipv4_addr . inet_service : inet_service
>          }
> 
> }
> 
> I created this through libnftnl. I tested it out by adding an element 
> with the following command through the cmd line:
> 
> nft add element netdev testtable testmap {1.1.1.1 . 20 : 2.2.2.2}

The type declaration should be as follows.

type ipv4_addr . inet_service : ipv4_addr

-- 
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