]> granicus.if.org Git - libnl/log
libnl
16 years agoRepresent default route with destination address length zero
Thomas Graf [Wed, 19 Dec 2007 18:41:01 +0000 (19:41 +0100)]
Represent default route with destination address length zero

So far the destination address for default routes was NULL
which complicated the handling of routes in general. By
assigning a address of length zero they can be compared
to each other.

This allows the cache manager to properly handle default
routes.

16 years agoSupport defining the default callback handler with an environment variable
Thomas Graf [Tue, 18 Dec 2007 12:06:48 +0000 (13:06 +0100)]
Support defining the default callback handler with an environment variable

16 years agoRead debugging environment variable when initializing the library
Thomas Graf [Tue, 18 Dec 2007 11:42:06 +0000 (12:42 +0100)]
Read debugging environment variable when initializing the library

16 years agoInclude linux/ip_mg_alg.h internally for compatibility only
Thomas Graf [Tue, 18 Dec 2007 11:30:09 +0000 (12:30 +0100)]
Include linux/ip_mg_alg.h internally for compatibility only

16 years agoFix nl_msg_parse() to not give back a reference it does not own
Thomas Graf [Mon, 17 Dec 2007 22:07:22 +0000 (23:07 +0100)]
Fix nl_msg_parse() to not give back a reference it does not own

16 years agoFix cache manager to not give back a reference it does not own
Thomas Graf [Mon, 17 Dec 2007 22:01:06 +0000 (23:01 +0100)]
Fix cache manager to not give back a reference it does not own

16 years agoFix memory leak when parsing netlink messages into caches
Thomas Graf [Mon, 17 Dec 2007 15:52:41 +0000 (16:52 +0100)]
Fix memory leak when parsing netlink messages into caches

The reference created by the parsers was never given back.

16 years agoFix creation and destruction of sockets
Thomas Graf [Mon, 17 Dec 2007 15:26:49 +0000 (16:26 +0100)]
Fix creation and destruction of sockets

Fixes an off-by-one when releasing local ports. Fixes nl_connect()
to properly close the socket upon failure. Return EBADFD if
operations are performed on unconnected sockets where appropriate.
Makes nl_handle_alloc() return an error if all local ports are
used up.

16 years ago[LIBNL]: Fix pointer conversion warnings on 64 bit
Patrick McHardy [Thu, 13 Dec 2007 13:33:37 +0000 (14:33 +0100)]
[LIBNL]: Fix pointer conversion warnings on 64 bit

nl-tctree-dump.c: In function 'print_class':
nl-tctree-dump.c:31: warning: cast from pointer to integer of different size
nl-tctree-dump.c:44: warning: cast from pointer to integer of different size
nl-tctree-dump.c: In function 'print_qdisc':
nl-tctree-dump.c:55: warning: cast from pointer to integer of different size
nl-tctree-dump.c:64: warning: cast from pointer to integer of different size

Signed-off-by: Patrick McHardy <kaber@trash.net
16 years ago[LIBNL]: Fix pointer conversion warnings on 64 bit
Patrick McHardy [Thu, 13 Dec 2007 13:33:35 +0000 (14:33 +0100)]
[LIBNL]: Fix pointer conversion warnings on 64 bit

nl-tctree-dump.c: In function 'print_class':
nl-tctree-dump.c:31: warning: cast from pointer to integer of different size
nl-tctree-dump.c:44: warning: cast from pointer to integer of different size
nl-tctree-dump.c: In function 'print_qdisc':
nl-tctree-dump.c:55: warning: cast from pointer to integer of different size
nl-tctree-dump.c:64: warning: cast from pointer to integer of different size

Signed-off-by: Patrick McHardy <kaber@trash.net>
16 years ago[LIBNL]: Fix format strings
Patrick McHardy [Thu, 13 Dec 2007 11:09:45 +0000 (12:09 +0100)]
[LIBNL]: Fix format strings

Use %td for ptrdiff_t and %zu for size_t.

Signed-off-by: Patrick McHardy <kaber@trash.net>
16 years agoPushed to pre8 due to wrong version string in pre7
Thomas Graf [Wed, 21 Nov 2007 17:24:11 +0000 (18:24 +0100)]
Pushed to pre8 due to wrong version string in pre7

17 years agoCache message type association interface cleanups
Thomas Graf [Thu, 11 Oct 2007 21:09:49 +0000 (23:09 +0200)]
Cache message type association interface cleanups

17 years agoUse linux/types.h to fix amd64 build
Philip Craig [Tue, 18 Sep 2007 01:53:04 +0000 (11:53 +1000)]
Use linux/types.h to fix amd64 build

10-amd64-linux-types.patch from Ubuntu:

   - In order to make libnl compilable on amd64 include linux/types.h
     rather than defining the types ourselves; necessary as other headers
     include that and get different definitions.

 -- Scott James Remnant <scott@ubuntu.com>  Wed, 22 Mar 2006 02:12:08 +0000

17 years agoAllow filtering by name for conntrack status flags
Philip Craig [Tue, 18 Sep 2007 01:52:59 +0000 (11:52 +1000)]
Allow filtering by name for conntrack status flags

17 years agoFix typo in conntrack object compare
Philip Craig [Tue, 18 Sep 2007 01:52:51 +0000 (11:52 +1000)]
Fix typo in conntrack object compare

17 years agoExport interface to define caches
Thomas Graf [Mon, 17 Sep 2007 11:36:16 +0000 (13:36 +0200)]
Export interface to define caches

This interface was internal so far which required all code defining
caches to be compiled with the sources available.

In order to simplify the interface, the co_msg_parser prototype was
changed to take the struct nl_parser_param directly instead of a
void *. It used to be void * because the co_msg_parser was directly
passed as the NL_CB_VALID callback function.

17 years agoCheck for availability of request_update()
Thomas Graf [Mon, 17 Sep 2007 10:35:19 +0000 (12:35 +0200)]
Check for availability of request_update()

The implementation of this function is optional if a cache wishes to
be updated by notifications only.

17 years agoExport interface to define objects
Thomas Graf [Sat, 15 Sep 2007 17:55:38 +0000 (19:55 +0200)]
Export interface to define objects

This interface was internal so far which required all code defining
objects to be compiled with the sources available.

This change exposes struct nl_object_ops which seems safe as it
is not supposed to be embedded in other structures.

Patch contains extensive documentation to help with the creation
of own object implementations.

17 years agoAdd missing declarations for genlmsg_data() and genlmsg_len()
Thomas Graf [Sat, 15 Sep 2007 10:14:56 +0000 (12:14 +0200)]
Add missing declarations for genlmsg_data() and genlmsg_len()

17 years agoInitial import
Thomas Graf [Fri, 14 Sep 2007 23:28:01 +0000 (01:28 +0200)]
Initial import