Linux Netfilter discussions
 help / color / mirror / Atom feed
* Programmatically adding an element into a map using libnftnl
@ 2023-03-30 19:41 Kiernan George
  2023-03-30 20:17 ` Florian Westphal
  0 siblings, 1 reply; 2+ messages in thread
From: Kiernan George @ 2023-03-30 19:41 UTC (permalink / raw)
  To: netfilter

I have a map of the following format:

{ type ipv4_addr . inet_service : ipv4_addr }

How do I add an element into the map using the libnftnl API? I see the
example nft-set-elem-add.c, but it is not clear on how to modify this
for different types of elements like concatenated IP/port above or
IPV6.

I hate to ask again, but is there documentation for the library somewhere?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-30 20:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-30 19:41 Programmatically adding an element into a map using libnftnl Kiernan George
2023-03-30 20:17 ` Florian Westphal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox