Re: [libnftnl] documentation?

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

 



On Thu, Mar 26, 2020 at 09:58:04AM +0000, ѽ҉ᶬḳ℠ wrote:
> On 26/03/2020 09:45, Florian Westphal wrote:
> > Frank Myhr <fmyhr@xxxxxxxxxxx> wrote:
> > > On 2020/03/26 04:38, ѽ҉ᶬḳ℠ wrote:
> > > > Been trying to find some documentation in these places:
> > > > 
> > > > * https://netfilter.org/projects/libnftnl/
> > > > * https://www.netfilter.org/documentation/
> > > > * https://git.netfilter.org/libnftnl/tree/
> > > > *
> > > > https://wiki.nftables.org/wiki-nftables/index.php/Portal:DeveloperDocs/nftables_internals
> > > > 
> > > > 
> > > > but either I missed it - and thus appreciate a pointer - or there is none?
> > > > 
> > > > The aim/goal is to utilise libnftnl with json.
> > > Do these help you?:
> > > https://git.netfilter.org/nftables/tree/doc/libnftables.adoc
> > > https://git.netfilter.org/nftables/tree/doc/libnftables-json.adoc
> > > 
> > > AFAIK libnftnl=libnftables, the older name just persists (confusingly) in
> > > many places.
> > No, these are different libraries. libnftnl is a standalone library
> > with low-level helpers.
> > 
> > libnftables is the highlevel library, its part of nftables itself.
> > 
> > libnftables contains the ruleset parser, for example.
> Bit confusing as
> https://wiki.nftables.org/wiki-nftables/index.php/Building_and_installing_nftables_from_sources
> states
> 
> "libnftnl (formerly known as libnftables)"

I have just removed this. This is a very old reference.

These days:

* libnftnl is the low-level netlink library.
* libnftables is the high-level library, this one supports json.

> Similar https://lwn.net/Articles/789528/
> 
> "The library libnftnl has been previously known as libnftables."

I'll remove this in the template I have for future libnftnl releases.

> libnftnl then cannot parse json but "Is responsible for creating/parsing
> the nf_tables netlink messages"?

Yes.



[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