dect
/
libnl
Archived
13
0
Fork 0
Commit Graph

467 Commits

Author SHA1 Message Date
Thomas Graf 3f0f32bf79 Fix nl_msg_parse() to not give back a reference it does not own 2007-12-17 23:07:22 +01:00
Thomas Graf 12ed4a03d3 Fix cache manager to not give back a reference it does not own 2007-12-17 23:01:06 +01:00
Thomas Graf 155ad439a4 Fix memory leak when parsing netlink messages into caches
The reference created by the parsers was never given back.
2007-12-17 16:52:41 +01:00
Thomas Graf 91c330aae5 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.
2007-12-17 16:26:49 +01:00
Patrick McHardy 5780c640fc [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
2007-12-13 14:33:37 +01:00
Patrick McHardy 6a0d290a70 [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>
2007-12-13 14:33:35 +01:00
Patrick McHardy 936c9844b0 [LIBNL]: Fix format strings
Use %td for ptrdiff_t and %zu for size_t.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2007-12-13 12:09:45 +01:00
Thomas Graf e166565121 Pushed to pre8 due to wrong version string in pre7 2007-11-21 18:24:11 +01:00
Thomas Graf d36d396fd0 Cache message type association interface cleanups 2007-10-11 23:09:49 +02:00
Philip Craig 1a125f88d8 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
2007-09-18 12:37:50 +02:00
Philip Craig cbe8902265 Allow filtering by name for conntrack status flags 2007-09-18 12:37:49 +02:00
Philip Craig 104e158bd5 Fix typo in conntrack object compare 2007-09-18 12:37:49 +02:00
Thomas Graf 3040a1d625 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.
2007-09-17 13:36:16 +02:00
Thomas Graf 3d8efba917 Check for availability of request_update()
The implementation of this function is optional if a cache wishes to
be updated by notifications only.
2007-09-17 12:35:19 +02:00
Thomas Graf 508685c269 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.
2007-09-15 19:55:38 +02:00
Thomas Graf 9eb34dc6ca Add missing declarations for genlmsg_data() and genlmsg_len() 2007-09-15 12:14:56 +02:00
Thomas Graf 44d362409d Initial import 2007-09-15 01:28:01 +02:00