1
0
Fork 0
mirror of git://git.netfilter.org/libmnl synced 2025-12-05 22:28:39 +00:00
No description
Find a file
Florian Westphal 54dea548d7 examples: genl: fix wrong attribute size
This example no longer works on more recent kernels:

genl-family-get
error: Invalid argument

dmesg says:
netlink: 'genl-family-get': attribute type 1 has an invalid length.

Fix this and also zero out the reserved field in the genl header,
while not validated yet for dumps this could change.

Reported-by: Divyanshu Rathore <Divyanshu.Rathore@bmwtechworks.in>
Signed-off-by: Florian Westphal <fw@strlen.de>
2025-09-15 20:17:42 +02:00
doxygen doc: Address warnings emitted by doxygen 1.12.0 2024-09-15 17:40:32 +02:00
examples examples: genl: fix wrong attribute size 2025-09-15 20:17:42 +02:00
include src: attr: Add mnl_attr_get_uint() function 2024-07-31 09:12:57 +02:00
m4 m4: resolve autoconf-2.68 warnings 2011-12-17 04:17:51 +01:00
src src: remove whitespace irregularities 2024-11-28 13:26:26 +01:00
.gitignore doc: move doxygen config file into doxygen directory 2022-09-21 10:35:32 +02:00
autogen.sh build: abort autogen on subcommand failure 2011-08-09 14:28:49 +02:00
configure.ac build: do not build documentation automatically 2024-10-14 12:14:47 +02:00
COPYING COPYING: update file (FSF address was outdated) 2011-06-02 15:19:03 +02:00
libmnl.pc.in initial libmnl import 2010-03-19 14:55:32 +01:00
Make_global.am build: libmnl 1.0.4 release 2016-07-02 10:51:57 +02:00
Makefile.am build: doc: "make" builds & installs a full set of man pages 2021-06-23 19:05:52 +02:00
README build: do not build documentation automatically 2024-10-14 12:14:47 +02:00

= What is libmnl? =

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 re-use code
and to avoid re-inventing the wheel. The main features of this library are:

* Small: the shared library requires around 30KB for an x86-based computer.
* Simple: this library avoids complexity and elaborated abstractions that
tend to hide Netlink details.
* Easy to use: the library simplifies the work for Netlink-wise developers.
It provides functions to make socket handling, message building, validating,
parsing and sequence tracking, easier.
* Easy to re-use: you can use the library to build your own abstraction layer
on top of this library.
* Decoupling: the interdependency of the main bricks that compose the library
is reduced, i.e. the library provides many helpers, but the programmer is not
forced to use them.

= Documentation =

If doxygen is installed on your system, you can enable it via:

       ./configure --with-doxygen=yes

then type `make`.

To access the doxygen documentation, open the doxygen/html/index.html file with
a web browser.

= Example files =

You can find several example files under examples/ that you can compile by
invoking `make check'.

= Contributing =

Please submit any patches to <netfilter-devel@vger.kernel.org>.

The contributions should broadly follow the Linux Kernel process, as detailed
in https://www.kernel.org/doc/html/latest/process/submitting-patches.html

--
08/sep/2010
Pablo Neira Ayuso <pablo@netfilter.org>