Re: Creating a map with libnftnl

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

 



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}

This returned the error I mentioned previously. I'd appreciate an example on how to create a map programmatically with (I'm assuming are?) concatenated fields.

Thanks,

Kiernan

On 6/30/22 15:06, Kerin Millar wrote:
On Thu, 30 Jun 2022 16:03:03 +0100
Kerin Millar <kfm@xxxxxxxxxxxxx> wrote:

<snip>

Please specify:

- a listing of the presently defined map
- the command that was issued, verbatim
- the shell in use, if applicable
Never mind that last part. I missed that it was about libnftl, sorry.




[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