libnl/3.9.0

A collection of libraries providing APIs to netlink protocol based Linux kernel interfaces.
Recipe info
LGPL-2.1-only
2023-12-21

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
libnl/3.9.0

Using libnl

Note

If you are new with Conan, we recommend to read the section how to consume packages.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
libnl/3.9.0
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("libnl/3.9.0")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): libnl
  • CMake target name(s): libnl::libnl
  • pkg-config file name(s): libnl.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(libnl REQUIRED)
# ...
target_link_libraries(YOUR_TARGET libnl::libnl)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the libnl homepage listed above:

#include "libnl3/netlink/addr.h"
#include "libnl3/netlink/attr.h"
#include "libnl3/netlink/cache-api.h"
#include "libnl3/netlink/cache.h"
#include "libnl3/netlink/cli/addr.h"
#include "libnl3/netlink/cli/class.h"
#include "libnl3/netlink/cli/cls.h"
#include "libnl3/netlink/cli/ct.h"
#include "libnl3/netlink/cli/exp.h"
#include "libnl3/netlink/cli/link.h"
#include "libnl3/netlink/cli/mdb.h"
#include "libnl3/netlink/cli/neigh.h"
#include "libnl3/netlink/cli/nh.h"
#include "libnl3/netlink/cli/qdisc.h"
#include "libnl3/netlink/cli/route.h"
#include "libnl3/netlink/cli/rule.h"
#include "libnl3/netlink/cli/tc.h"
#include "libnl3/netlink/cli/utils.h"
#include "libnl3/netlink/data.h"
#include "libnl3/netlink/errno.h"
#include "libnl3/netlink/fib_lookup/lookup.h"
#include "libnl3/netlink/fib_lookup/request.h"
#include "libnl3/netlink/genl/ctrl.h"
#include "libnl3/netlink/genl/family.h"
#include "libnl3/netlink/genl/genl.h"
#include "libnl3/netlink/genl/mngt.h"
#include "libnl3/netlink/handlers.h"
#include "libnl3/netlink/hash.h"
#include "libnl3/netlink/hashtable.h"
#include "libnl3/netlink/idiag/idiagnl.h"
#include "libnl3/netlink/idiag/meminfo.h"
#include "libnl3/netlink/idiag/msg.h"
#include "libnl3/netlink/idiag/req.h"
#include "libnl3/netlink/idiag/vegasinfo.h"
#include "libnl3/netlink/list.h"
#include "libnl3/netlink/msg.h"
#include "libnl3/netlink/netfilter/ct.h"
#include "libnl3/netlink/netfilter/exp.h"
#include "libnl3/netlink/netfilter/log.h"
#include "libnl3/netlink/netfilter/log_msg.h"
#include "libnl3/netlink/netfilter/netfilter.h"
#include "libnl3/netlink/netfilter/nfnl.h"
#include "libnl3/netlink/netfilter/queue.h"
#include "libnl3/netlink/netfilter/queue_msg.h"
#include "libnl3/netlink/netlink-compat.h"
#include "libnl3/netlink/netlink-kernel.h"
#include "libnl3/netlink/netlink.h"
#include "libnl3/netlink/object-api.h"
#include "libnl3/netlink/object.h"
#include "libnl3/netlink/route/act/gact.h"
#include "libnl3/netlink/route/act/mirred.h"
#include "libnl3/netlink/route/act/nat.h"
#include "libnl3/netlink/route/act/skbedit.h"
#include "libnl3/netlink/route/act/vlan.h"
#include "libnl3/netlink/route/action.h"
#include "libnl3/netlink/route/addr.h"
#include "libnl3/netlink/route/class.h"
#include "libnl3/netlink/route/classifier.h"
#include "libnl3/netlink/route/cls/basic.h"
#include "libnl3/netlink/route/cls/cgroup.h"
#include "libnl3/netlink/route/cls/ematch.h"
#include "libnl3/netlink/route/cls/ematch/cmp.h"
#include "libnl3/netlink/route/cls/ematch/meta.h"
#include "libnl3/netlink/route/cls/ematch/nbyte.h"
#include "libnl3/netlink/route/cls/ematch/text.h"
#include "libnl3/netlink/route/cls/flower.h"
#include "libnl3/netlink/route/cls/fw.h"
#include "libnl3/netlink/route/cls/matchall.h"
#include "libnl3/netlink/route/cls/police.h"
#include "libnl3/netlink/route/cls/u32.h"
#include "libnl3/netlink/route/link.h"
#include "libnl3/netlink/route/link/api.h"
#include "libnl3/netlink/route/link/bonding.h"
#include "libnl3/netlink/route/link/bridge.h"
#include "libnl3/netlink/route/link/bridge_info.h"
#include "libnl3/netlink/route/link/can.h"
#include "libnl3/netlink/route/link/geneve.h"
#include "libnl3/netlink/route/link/inet.h"
#include "libnl3/netlink/route/link/inet6.h"
#include "libnl3/netlink/route/link/info-api.h"
#include "libnl3/netlink/route/link/ip6gre.h"
#include "libnl3/netlink/route/link/ip6tnl.h"
#include "libnl3/netlink/route/link/ip6vti.h"
#include "libnl3/netlink/route/link/ipgre.h"
#include "libnl3/netlink/route/link/ipip.h"
#include "libnl3/netlink/route/link/ipvlan.h"
#include "libnl3/netlink/route/link/ipvti.h"
#include "libnl3/netlink/route/link/macsec.h"
#include "libnl3/netlink/route/link/macvlan.h"
#include "libnl3/netlink/route/link/macvtap.h"
#include "libnl3/netlink/route/link/ppp.h"
#include "libnl3/netlink/route/link/sit.h"
#include "libnl3/netlink/route/link/sriov.h"
#include "libnl3/netlink/route/link/team.h"
#include "libnl3/netlink/route/link/veth.h"
#include "libnl3/netlink/route/link/vlan.h"
#include "libnl3/netlink/route/link/vrf.h"
#include "libnl3/netlink/route/link/vxlan.h"
#include "libnl3/netlink/route/link/xfrmi.h"
#include "libnl3/netlink/route/mdb.h"
#include "libnl3/netlink/route/neighbour.h"
#include "libnl3/netlink/route/neightbl.h"
#include "libnl3/netlink/route/netconf.h"
#include "libnl3/netlink/route/nexthop.h"
#include "libnl3/netlink/route/nh.h"
#include "libnl3/netlink/route/pktloc.h"
#include "libnl3/netlink/route/qdisc.h"
#include "libnl3/netlink/route/qdisc/cbq.h"
#include "libnl3/netlink/route/qdisc/dsmark.h"
#include "libnl3/netlink/route/qdisc/fifo.h"
#include "libnl3/netlink/route/qdisc/fq_codel.h"
#include "libnl3/netlink/route/qdisc/hfsc.h"
#include "libnl3/netlink/route/qdisc/htb.h"
#include "libnl3/netlink/route/qdisc/mqprio.h"
#include "libnl3/netlink/route/qdisc/netem.h"
#include "libnl3/netlink/route/qdisc/plug.h"
#include "libnl3/netlink/route/qdisc/prio.h"
#include "libnl3/netlink/route/qdisc/red.h"
#include "libnl3/netlink/route/qdisc/sfq.h"
#include "libnl3/netlink/route/qdisc/tbf.h"
#include "libnl3/netlink/route/route.h"
#include "libnl3/netlink/route/rtnl.h"
#include "libnl3/netlink/route/rule.h"
#include "libnl3/netlink/route/tc-api.h"
#include "libnl3/netlink/route/tc.h"
#include "libnl3/netlink/socket.h"
#include "libnl3/netlink/types.h"
#include "libnl3/netlink/utils.h"
#include "libnl3/netlink/version.h"
#include "libnl3/netlink/xfrm/ae.h"
#include "libnl3/netlink/xfrm/lifetime.h"
#include "libnl3/netlink/xfrm/sa.h"
#include "libnl3/netlink/xfrm/selector.h"
#include "libnl3/netlink/xfrm/sp.h"
#include "libnl3/netlink/xfrm/template.h"