Creating a map with libnftnl

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

 



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


Any tips would be appreciated.


Thank you,

Kiernan




[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