Linux Netfilter discussions
 help / color / mirror / Atom feed
* Creating a map programmatically using the C library libnftnl
@ 2023-03-27 18:04 Kiernan George
  2023-03-28 15:09 ` Florian Westphal
  0 siblings, 1 reply; 7+ messages in thread
From: Kiernan George @ 2023-03-27 18:04 UTC (permalink / raw)
  To: netfilter

Hello,

I'm not sure how to respond to my post from earlier today, so I'm just
creating a new one.

I do not need help figuring out how to use the nft command line tool.
I need to figure out how to use the libnftnl C library to create a map
of the following type and insert elements into it:

type ipv4_addr . inet_service : ipv4_addr

I see an example for creating a set in nft-set-test.c, but I'm not
sure how to translate this into creating a map and adding elements to
it. Is there documentation somewhere? Could you write an example for
this use case?

Thanks,
Kiernan George

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

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

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-27 18:04 Creating a map programmatically using the C library libnftnl Kiernan George
2023-03-28 15:09 ` Florian Westphal
2023-03-30 15:31   ` Kiernan George
     [not found]   ` <CAOg40qhR5vXo=tkNThLTbZ3nK0MZDf=VwONarYBg4KFokYCqcg@mail.gmail.com>
2023-03-30 16:09     ` Florian Westphal
2023-03-30 17:17       ` Kiernan George
2023-03-30 19:55         ` Florian Westphal
2023-03-30 20:08           ` Pablo Neira Ayuso

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