Re: Creating a map programmatically with libnftnl

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

 



Hello

Le 27/03/2023 à 19:22, Kiernan George a écrit :
Hello,

I asked this on 2022-06-30, but never received a response. Could you
post an example using the libnftnl functions to create a map of the
following type and insert elements:

type ipv4_addr . inet_service : ipv4_addr

I see an example for creating a set, but I can't figure out how to
create a map and insert elements into it.

add map ip nat forward_tcp.lan { type ipv4_addr . inet_service : interval ipv4_addr . inet_service; flags interval; }

add element ip nat forward_tcp.lan { 192.168.10.24 . 58194-58198 : 192.168.10.4 . 58194-58198  }

--
Daniel



[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