]> granicus.if.org Git - libnl/log
libnl
16 years agoImprove message/attribute construction documentation and add nlmsg_expand()
Thomas Graf [Mon, 14 Jan 2008 15:46:17 +0000 (16:46 +0100)]
Improve message/attribute construction documentation and add nlmsg_expand()

16 years agoFix documentation of cache manager.
Thomas Graf [Mon, 14 Jan 2008 15:38:37 +0000 (16:38 +0100)]
Fix documentation of cache manager.

16 years agoFix stale data pointers when constructing messages
Thomas Graf [Mon, 14 Jan 2008 15:17:56 +0000 (16:17 +0100)]
Fix stale data pointers when constructing messages

Patrick McHardy reported a problem where pointers to the
payload of a netlink message as returned by f.e. the
nesting helpers become stale when the payload data
chunk is reallocated.

In order to avoid further problems, the payload chunk is
no longer extended on the fly. Instead the allocation is
made during netlink message object allocation time with
a default size of a page which should be fine for the
majority of all users. Additionally the functions
nlmsg_alloc_size() and nlmsg_set_default_size() have been
added to allocate messages of a particular length and to
modify the default message size.

16 years agoAdd missing @{ for doxygen to build genl documentation
Thomas Graf [Thu, 10 Jan 2008 16:03:34 +0000 (17:03 +0100)]
Add missing @{ for doxygen to build genl documentation

16 years ago[PATCH] Remove autogenerated files from git and add them to .gitignore.
Michael Biebl [Thu, 10 Jan 2008 13:29:00 +0000 (14:29 +0100)]
[PATCH] Remove autogenerated files from git and add them to .gitignore.

16 years ago[PATCH] Process Doxyfile.in to set correct PACKAGE_VERSION number
Michael Biebl [Thu, 10 Jan 2008 13:25:46 +0000 (14:25 +0100)]
[PATCH] Process Doxyfile.in to set correct PACKAGE_VERSION number

16 years agorelease 1.0
Thomas Graf [Thu, 10 Jan 2008 11:46:37 +0000 (12:46 +0100)]
release 1.0

16 years agoRemove lib/defs.h from repository
Thomas Graf [Thu, 10 Jan 2008 11:45:02 +0000 (12:45 +0100)]
Remove lib/defs.h from repository

16 years ago[PATCH] libnl cache management leak
Patrick McHardy [Wed, 9 Jan 2008 18:41:58 +0000 (19:41 +0100)]
[PATCH] libnl cache management leak

16 years agoAdded additional parsing and validation functions for generic netlink
Thomas Graf [Thu, 10 Jan 2008 11:35:38 +0000 (12:35 +0100)]
Added additional parsing and validation functions for generic netlink

Also adds better example documentation for generic netlink

16 years agoTell git to ignore temporary files and push to pre9
Thomas Graf [Wed, 9 Jan 2008 11:28:17 +0000 (12:28 +0100)]
Tell git to ignore temporary files and push to pre9

16 years agoMake vlan_put_attrs() available
Thomas Graf [Tue, 8 Jan 2008 14:18:23 +0000 (15:18 +0100)]
Make vlan_put_attrs() available

16 years agoLink info interface and vlan support
Thomas Graf [Tue, 8 Jan 2008 14:00:46 +0000 (15:00 +0100)]
Link info interface and vlan support

Adds an external interface to implement link info types and
implements the type vlan.

16 years agoAdd support for the IFF_ECHO flag
Thomas Graf [Wed, 19 Dec 2007 21:06:47 +0000 (22:06 +0100)]
Add support for the IFF_ECHO flag

16 years agoSupport link operstate and linkmode
Thomas Graf [Wed, 19 Dec 2007 21:03:44 +0000 (22:03 +0100)]
Support link operstate and linkmode

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

16 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