From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Khawar Shehzad <shehzad.khawar@gmail.com>
Cc: "netfilter@vger.kernel.org" <netfilter@vger.kernel.org>
Subject: Re: Programmatically adding Map element into the map/set using libnftnl
Date: Wed, 30 Nov 2016 20:34:53 +0100 [thread overview]
Message-ID: <20161130193453.GA12643@salvia> (raw)
In-Reply-To: <CAE0moyeVaSi5gmTZgsm4r8on0oWg7zU1eBRaj75TKY9YA58Jew@mail.gmail.com>
On Wed, Nov 30, 2016 at 07:16:28PM +0000, Khawar Shehzad wrote:
> Hi,
> I hope everybody is fine.
>
> I want to do following programmatically in C using libnftnl.
>
>
> _______________________________________________
> "nft add element ip6 my_table my_map {fe80::2 : fe80::3 }"
> _______________________________________________
>
> My example code is below, and it gives "error: Invalid argument"
> error. My question is simple how can I add an IPv6 map into a set/map.
> My map type is "type ipv6_addr : ipv6_addr".
Just added an example for you at:
http://git.netfilter.org/libnftnl/commit/?id=2d894a97c28e6c7c7f064d16bec0167d000e901c
next prev parent reply other threads:[~2016-11-30 19:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-30 19:16 Programmatically adding Map element into the map/set using libnftnl Khawar Shehzad
2016-11-30 19:34 ` Pablo Neira Ayuso [this message]
2016-11-30 19:46 ` Khawar Shehzad
2016-11-30 20:14 ` Pablo Neira Ayuso
2016-11-30 21:27 ` Pablo Neira Ayuso
2016-11-30 22:17 ` Khawar Shehzad
2016-11-30 22:28 ` Khawar Shehzad
2016-11-30 22:32 ` Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161130193453.GA12643@salvia \
--to=pablo@netfilter.org \
--cc=netfilter@vger.kernel.org \
--cc=shehzad.khawar@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.