Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/vyos/libmnl

libmnl minimalistic netfilter library
https://github.com/vyos/libmnl

build: do not abuse AM_INIT_AUTOMAKE for autoconf options

Also rename the file to its standard designated name.

Signed-off-by: Jan Engelhardt <jengelh@me...

9475fc45474d9bb57f2f138ad9575fd2593cf2df authored about 14 years ago by Jan Engelhardt <[email protected]>
build: just use autoreconf

This is the recommended way to regenerate the GNU build system files
these days.

Signed-off-by:...

d8f8f055bdd69c9eb88d84405521180ddce2d718 authored about 14 years ago by Jan Engelhardt <[email protected]>
add quote from Thoureau to documentation

I like this quote.

Signed-off-by: Pablo Neira Ayuso <[email protected]>

e7fa7219245809491fedfd9efcbe50b6c839f734 authored about 14 years ago by Pablo Neira Ayuso <[email protected]>
doxygen documentation

Signed-off-by: Pablo Neira Ayuso <[email protected]>

78cddab700c3d526e0677b8cfd7c7b9a5fd97e2e authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
examples: put examples files into specific directories

put examples files into specific directories according to the
Netlink bus they work with. And mi...

089d5e1c6a4fcd6615b02866b760f2d7b4084a08 authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
add missing .gitignore file to m4/ directory

Signed-off-by: Pablo Neira Ayuso <[email protected]>

2a67cbdd18d23612a49435e251fb0c853388b0e8 authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
skip PortID and sequence checking if zero

If the portID/sequence number that we specify is zero, we skip
the sequence tracking. This is us...

b7e17c2d7334847230011cfcb3c11b5f33369f41 authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
build: add notice on how to update library API version

Signed-off-by: Pablo Neira Ayuso <[email protected]>

6fa671f31450210275dee07cdfc94cbe63d9aa88 authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
examples: fix byte-order in nfct-event

Signed-off-by: Pablo Neira Ayuso <[email protected]>

d8202e44e18746f06a00424f9d3cf680b7bd4a2e authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
examples: fix rtnl-set-link

This patch fixes the example that allows to set up/down the
network interface.

Signed-off-by: P...

c7e8539340bd5dd6a099303bda6dead9063e6333 authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
socket: remove mnl_socket_sendmsg() and mnl_socket_recvmsg()

These functions are too simple wrappers that bloat the library.
We can use mnl_socket_get_fd() t...

5d51315f5263f9cbda18f70e2d340a66cf1bf1f9 authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
nlmsg: use size_t instead of int for several input parameters

Signed-off-by: Pablo Neira Ayuso <[email protected]>

ff088fc0d88ef97fe9559880643def6fe40ae086 authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
add nfct-event example

Signed-off-by: Pablo Neira Ayuso <[email protected]>

e87d216e3dcb09500cb78b5a8d39da7d44abb0d6 authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
fix rtnl-link-dump3.c

commit a5f25889216411ad7492047fafe6de03b8408440 introduced a minor
problem in this example.

Sig...

4c811881d33c702464e7bf02e8ce16b3cc3eb1fc authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
relax mnl_attr_type_valid() checkings and change errno value

This patch relaxes strict attribute checkings in the example files.
I have also changed the errn...

a5f25889216411ad7492047fafe6de03b8408440 authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
change errno values for mnl_cb_run[2]()

This patch changes the errno value of mnl_cb_run[2]() in the
following two cases:

* Invalid exp...

cbded627a15baf792465c0cbe960b36cb9408fe2 authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
statify function in nf-queue.c example

Signed-off-by: Pablo Neira Ayuso <[email protected]>

d2adc46f2748099316df910d0ecc14e4218590a0 authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
add nf-queue.c example file for nfnetlink_queue

Signed-off-by: Pablo Neira Ayuso <[email protected]>

633bea57cb70b1e227629d46da03e1fa34f0e259 authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
add licensing terms of example files

Signed-off-by: Pablo Neira Ayuso <[email protected]>

fe3984e6f5e36f244ac4df378d66d98826da78e8 authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
add helpers to nest attributes

Based on code from Jozsef Kadlecsik and its ipset-5 implementation.

Signed-off-by: Pablo Neira ...

d75ac4598f2f9472dd625d284b912d417b287e1e authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
add rtnl-route-add.c to examples

Heavily based on an example from Alejandro Castaño. Untested.

Signed-off-by: Alejandro Castaño ...

c1a946a824a7b870e06b9eff209ad12d11484d1a authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
remove references to 'generic' in header file

The term 'Generic' is used in GeNetlink, we don't want any confusion
with it. Better remove it.
...

7bdf8b8acec8d3eed61ff2f24a18ac1c97cd365f authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
fix lots of compilation warnings in example files

They have been spotted by -Wall -Wextra

Signed-off-by: Pablo Neira Ayuso <[email protected]>

a4ae4201a45858516cfb3e63ffd12c2d12acbb70 authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
add -Wextra -Wall for example files

AM_CFLAGS=-fPIC -Wall -Wextra -Wno-unused-parameter

Signed-off-by: Pablo Neira Ayuso <pablo@net...

c0d2aec13192ece4211894554348cdf9ddcb5837 authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
fix warning in mnl_cb_run2()

callback.c: In function ‘mnl_cb_run2’:
callback.c:106: warning: pointer targets in passing argum...

42e93dab699c82d3766a1662da06d0e5855667d6 authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
remove redudant alignment in mnl_nlmsg_size()

MNL_NLMSG_HDRLEN already provides the aligned size of the netlink header.

Signed-off-by: Pablo ...

b262957ad4cadb579e4ee463a6235ab6fc1c0cf9 authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
use size_t to indicate the buffer size in mnl_cb_run*()

Signed-off-by: Pablo Neira Ayuso <[email protected]>

9ad5f22842364ac63d0e915accc1389c51f3606a authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
review data types for input parameters of mnl_attr_*() functions

This patch includes the following changes:
* use uint16_t for attribute types in mnl_attr_put_*...

158a5b97a312f6810912d0e31ded4275a6a787ff authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
fix mnl_attr_parse()

mnl_attr_parse does not take into account the length of the netlink
message header and the offse...

fde77649df47e8313d330a3f1e0f4b698e73ee8b authored over 14 years ago by Jozsef Kadlecsik <[email protected]>
add mnl_nlmsg_fprintf() function for debugging purposes

This function is still quite preliminary, comments welcome!

Signed-off-by: Pablo Neira Ayuso <p...

31118c770f1bc822226b8d3f70bad1904552745c authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
fix for mnl_attr_for_each_nested()

Signed-off-by: Jozsef Kadlecsik <[email protected]>
Signed-off-by: Pablo Neira Ayuso <pab...

4d2a25dafdb3fcc73226af155fd0a71f551fae7d authored over 14 years ago by Jozsef Kadlecsik <[email protected]>
update socket helper documentation

Signed-off-by: Pablo Neira Ayuso <[email protected]>

c73e0bdf363163a2515efee05ea09f8f63172deb authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
minor update in README (library is around 30KB here, not 20KB)

127dea21b7382cc0f0b5199630aa1f1666e3009d authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
remove mnl_nlmsg_get_len() function

Remove mnl_nlmsg_get_len() since it returns a field of a structure
that is public (struct nlmsgh...

1f09fdccb75005a53ba2bb90fb61d4e6f45e8e14 authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
remove bogus casting in mnl_nlmsg_get_payload_tail()

Signed-off-by: Pablo Neira Ayuso <[email protected]>

0f53ba01cd326130bdf68c2ed69e13007fe75fa3 authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
improve documentation of netlink message helpers

Signed-off-by: Pablo Neira Ayuso <[email protected]>

19d05d73b1f41e6074aad7ed73359afb232f5a36 authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
review documentation on netlink attribute helpers

Signed-off-by: Pablo Neira Ayuso <[email protected]>

2d5dae752b827751868ccaa505712e8f0e564e2e authored over 14 years ago by Pablo Neira Ayuso <[email protected]>
add new README file

Signed-off-by: Pablo Neira Ayuso <[email protected]>

fdf71c17822f3f11cb8f8cc8b5141396d8eac942 authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
more consistency name issues: rename get_data*() to get_payload*()

This includes renaming get_tail() to get_payload_tail()

Signed-off-by: Pablo Neira Ayuso <pablo...

8e9a6ecf73b4c67c21b707228b7a621dae6804c6 authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
x

ad3f11f8aaff3d24a932f2f55b368510cdd23c65 authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
rename mnl_nlmsg_payload_size() to mnl_nlmsg_get_payload_len() for consistency

Signed-off-by: Pablo Neira Ayuso <[email protected]>

adae0f1a8967e5e853c98a336c51553c07c1d269 authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
rename msg.c to nlmsg.c

Signed-off-by: Pablo Neira Ayuso <[email protected]>

db085424d91624a3f01bf7e76ce7e30a02857e88 authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
rename mnl_attr_type_ok() by mnl_attr_type_valid() for consistency

better to rename this function since its return value is not similar
to other _ok() functions, f...

3ece3d60f41b65470ec5ce6c9a0b830e32a84422 authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
fix warning in compilation due to different signess

msg.c: In function ‘mnl_nlmsg_ok’:
msg.c:136: warning: comparison between signed and unsigned
ms...

73661922bc3b7ebf1225d8273147ab4a87757008 authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
add -Wextra to spot more errors in compilation

Signed-off-by: Pablo Neira Ayuso <[email protected]>

6e64a11b6d146635bd0e02fa8c9160e73f4c48a9 authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
remove bogus checking in mnl_attr_validate() and mnl_attr_validate2()

attr.c: In function ‘mnl_attr_validate’:
attr.c:189: warning: comparison of unsigned expression ...

6c266027bd84a03e54ef6182e2c97586f2d2821d authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
rename mnl_attr_type_invalid() by mnl_attr_type_ok()

And include the prototype in libmnl.h, since it was missing

Signed-off-by: Pablo Neira Ayuso <p...

8bc402318be9f09b70cdb61d81799e90d8a64e7b authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
remove mnl_align() as it's been replaced by MNL_ALIGN()

We remove mnl_align() since it has been replaced by the macro
MNL_ALIGN(). The macro allows its ...

bd00b928e678b3ede5dbc5abc933539fe5cc31e6 authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
check source of the netlink message and fix sequence tracking logic

This patch changes the callback handlers to include netlink portID
checking. Thus, we avoid that...

117f033c413820739e6679c926a39a5b3f45ff79 authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
add validation infrastructure and rework attribute parsing

This patch includes the new validation infrastructure which is
decoupled from the attribute pars...

8ce5d4ca70884654988eb86734cb3022e0b71995 authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
revert abcaad6b65ed368c13c353ed71619332f76d9c2a

it's deeply broken 8-)

ba57ffc48d3a97421c8358947bc8cf9f2e7ff7c6 authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
check portid of received messages in examples

netlink is not connection-oriented, we have to check the origin
of the message.

Signed-off-by: ...

abcaad6b65ed368c13c353ed71619332f76d9c2a authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
use C99 types uintXX_t instead of POSIX u_intXX_t

Signed-off-by: Pablo Neira Ayuso <[email protected]>

ccf40b8b3789193554ae13182c38ba7e69841cce authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
constify several mnl_socket_* parameters and use size_t instead of int

Signed-off-by: Pablo Neira Ayuso <[email protected]>

f8fb875d3e48d833c1a120e7c3f470d614cbba50 authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
fix mnl_socket_bind() to support the selection of the netlink portID

3abe11928494ca315d1b6c53d9d9805d0a0fa5b9 authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
partially revert previous commit

the use of unsigned int in the number of bytes affects other message
handling helper function, h...

a5fc31eb37f7f5b88b727c52daccae966a53334b authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
use `unsigned int' for number of bytes and array size in callback API

024aef34cd2ba6ab9b91c61c9b08f0769243de20 authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
add COPYING file

This library is distributed under GPLv2+.

Signed-off-by: Pablo Neira Ayuso <[email protected]>

85d53a10cf5838d12ace5037af3cec8925d8aea4 authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
fix mnl_cb_run() and mnl_cb_run2() return value logic

1be15625d4d722557fbb4766290fb71a8f59cfe3 authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
finish API documentation

This patch may contain errors but we can review them and fix them later,
better to have it in th...

c5a4f3d7738f8172de40112cf4a02fbd4b0a9902 authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
remove libnfnetlink stuff from autogen.sh

3cc6ba530042288363a048299f2d6a38517db308 authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
fix leak in mnl_socket_open()

12854285ee786cf543bcd660d9f511851d9a0fdf authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>
initial libmnl import

74e7bb8b033640f7c4692c4ea0d5c231e3137b7b authored almost 15 years ago by Pablo Neira Ayuso <[email protected]>