Re: Creating a map with libnftnl

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

 



That's actually what I had, I got screwed up when copying it over. Regardless, do you know how to set that up correctly with libnftnl?

On 6/30/22 15:54, Kerin Millar wrote:
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




[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