libmnl Documentation


libmnl is a minimalistic user-space library oriented to Netlink developers. There are a lot of common tasks in parsing, validating, constructing of both the Netlink header and TLVs that are repetitive and easy to get wrong. This library aims to provide simple helpers that allows you to avoid re-inventing the wheel in common Netlink tasks.

"Simplify, simplify" -- Henry David Thoureau. Walden (1854)

The acronym libmnl stands for LIBrary Minimalistic NetLink.

libmnl homepage is:

Main Features

Licensing terms

This library is released under the LGPLv2.1 or any later (at your option).


You have to install the Linux kernel headers that you want to use to develop your application. Moreover, this library requires that you have some basics on Netlink.

Git Tree

The current development version of libmnl can be accessed at:;a=summary

Using libmnl

You can access several example files under examples/ in the libmnl source code tree.