| 1 |
= What is libmnl? = |
| 2 |
|
| 3 |
libmnl is a minimalistic user-space library oriented to Netlink developers. |
| 4 |
There are a lot of common tasks in parsing, validating, constructing of |
| 5 |
both the Netlink header and TLVs that are repetitive and easy to get wrong. |
| 6 |
This library aims to provide simple helpers that allows you to re-use code |
| 7 |
and to avoid re-inventing the wheel. The main features of this library are: |
| 8 |
|
| 9 |
* Small: the shared library requires around 30KB for an x86-based computer. |
| 10 |
* Simple: this library avoids complexity and elaborated abstractions that |
| 11 |
tend to hide Netlink details. |
| 12 |
* Easy to use: the library simplifies the work for Netlink-wise developers. |
| 13 |
It provides functions to make socket handling, message building, validating, |
| 14 |
parsing and sequence tracking, easier. |
| 15 |
* Easy to re-use: you can use the library to build your own abstraction layer |
| 16 |
on top of this library. |
| 17 |
* Decoupling: the interdependency of the main bricks that compose the library |
| 18 |
is reduced, i.e. the library provides many helpers, but the programmer is not |
| 19 |
forced to use them. |
| 20 |
|
| 21 |
= Example files = |
| 22 |
|
| 23 |
You can find several example files under examples/ that you can compile by |
| 24 |
invoking `make check'. |
| 25 |
|
| 26 |
-- |
| 27 |
08/sep/2010 |
| 28 |
Pablo Neira Ayuso <[email protected]> |