]>
granicus.if.org Git - libnl/log
Thomas Graf [Wed, 11 Jan 2012 11:51:03 +0000 (12:51 +0100)]
3.2.4 release
Alexander Sack [Thu, 20 Oct 2011 22:31:39 +0000 (00:31 +0200)]
avoid dangling co_major_cache reference to NL_AUTO_PROVIDE caches
Thomas Graf [Fri, 25 Nov 2011 15:08:25 +0000 (16:08 +0100)]
dsmark: Add missing declarations for rtnl_class_dsmark_(get|set)_bitmask()
The existing declarations refered to non-existing functions so removing
them is safe.
Signed-off-by: Thomas Graf <tgraf@redhat.com>
Jiri Pirko [Fri, 11 Nov 2011 15:01:52 +0000 (16:01 +0100)]
rtnl_link_bond_add: allow to allocate bond name in case NULL is given
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Jiri Pirko [Fri, 11 Nov 2011 13:56:16 +0000 (14:56 +0100)]
link: allow to add/get linkinfo of unknown type
store type kind in rtnl_link independently. That would allow to use this
value even if type_ops are not present. This allows for example to
create devices of type unknown to libnl.
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Jan Engelhardt [Fri, 11 Nov 2011 00:33:51 +0000 (01:33 +0100)]
build: simplify optional dirs/files in Makefile.am processing
Thomas Graf [Thu, 10 Nov 2011 14:04:43 +0000 (15:04 +0100)]
release 3.2.3
Jiri Pirko [Mon, 7 Nov 2011 13:35:13 +0000 (14:35 +0100)]
add missing IFLA_MASTER fillup
this makes all set_master functions work.
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Thomas Graf [Mon, 7 Nov 2011 11:32:35 +0000 (12:32 +0100)]
link: generic link enslaving API
Adds rtnl_link_enslave() / rtnl_link_release() providing a genreic
link enslaving/release API for use with all link types which use
the IFLA_MASTER property.
Thomas Graf [Sun, 30 Oct 2011 16:07:13 +0000 (17:07 +0100)]
bump to 3.2.2
Thomas Graf [Fri, 28 Oct 2011 10:30:31 +0000 (12:30 +0200)]
Fix typo in debug message
Thomas Graf [Wed, 26 Oct 2011 08:54:10 +0000 (10:54 +0200)]
python: Link against nl-3 and nl-route-3
Thomas Graf [Fri, 21 Oct 2011 09:31:58 +0000 (11:31 +0200)]
link: Ignore bridging notifications in link cache manager
RTM_DELLINK and RTM_NEWLINK bridging notifications should not delete/add
entries to a link cache.
Thomas Graf [Fri, 21 Oct 2011 09:31:15 +0000 (11:31 +0200)]
cache: event_filter() cache operation to filter notifications
Certain notifications need to be filtered out and should not be applied to
a cache when a cache is handled by a cache manager.
Thomas Graf [Mon, 10 Oct 2011 10:02:33 +0000 (12:02 +0200)]
utils: Initialize list head after freeing translation list
Problem found and fix proposed by Andrew Kraslavsky <andykras@hotmail.com>
Michael Altizer [Sun, 9 Oct 2011 21:02:36 +0000 (17:02 -0400)]
Only use the MULTIPATH attribute when adding routes with more than one next hop.
Only use the MULTIPATH attribute when adding routes with more than one
next hop.
This solves issues with two scenarios:
1. Adding an IPv4 route to a kernel configured without
CONFIG_IP_ROUTE_MULTIPATH=y.
2. Adding an IPv6 route in general, since the MULTIPATH attribute is not
supported there.
Signed-off-by: Michael Altizer <xiche@verizon.net>
Michael Altizer [Sun, 9 Oct 2011 21:02:35 +0000 (17:02 -0400)]
Don't install CLI header files when --disable-cli has been configured.
Signed-off-by: Michael Altizer <xiche@verizon.net>
Michael Altizer [Sun, 9 Oct 2011 21:02:34 +0000 (17:02 -0400)]
Fix rtnl_link object memory leak when freeing rtnl_addr objects.
Signed-off-by: Michael Altizer <xiche@verizon.net>
Jiří Župka [Tue, 4 Oct 2011 14:06:22 +0000 (16:06 +0200)]
Add libnl-cli-3.0 to pkg-config tool
Signed-off-by: Jiří Župka <jzupka@redhat.com>
Thomas Graf [Mon, 19 Sep 2011 09:47:49 +0000 (11:47 +0200)]
3.2.1 release
Added more details on the changes to where and how libnl is being
instaslled since 3.2.0
Thomas Graf [Mon, 19 Sep 2011 09:28:20 +0000 (11:28 +0200)]
Provide micro version in <netlink/version.h>
Thomas Graf [Mon, 19 Sep 2011 09:24:52 +0000 (11:24 +0200)]
Ingnore src/nl-link-enslave and nl-link-release
Thomas Graf [Fri, 16 Sep 2011 11:17:04 +0000 (13:17 +0200)]
Bonding: Fix header guard of <netlink/route/link/bonding.h>
(Would be a good idea to change the header guard name when c&p
an existing header file to create a new one.)
Thomas Graf [Fri, 16 Sep 2011 11:07:03 +0000 (13:07 +0200)]
bonding: Install <netlink/route/link/bonding.h>
Thomas Graf [Fri, 16 Sep 2011 10:57:52 +0000 (12:57 +0200)]
bonding: API to create/enslave/release
Although it has been possible to create bonding devices, enslave and
release using the regular link API. The added API simplifies usage
and hides some of the compatibility logic.
F.e. enslave() and release() will both verify that the master assignment
has in fact been changed and return -NLE_OPNOTSUPP if it did not.
Also the API will make sure to use RTM_NEWLINK or RTM_SETLINK depending
on what is availble.
Examples are provided in src/ as nl-link-enslave.c and nl-link-release.c
Thomas Graf [Wed, 14 Sep 2011 09:43:10 +0000 (11:43 +0200)]
link: Eat ACK followed by RTM_NEWLINK when requesting single link
When requesting a single link with RTM_GETLINK (no dump) the
RTM_NEWLINK carrying the answer will be followed by an ACK
we have to wait for.
Thomas Graf [Tue, 13 Sep 2011 21:33:06 +0000 (23:33 +0200)]
Fix
a73cb2f26 fallout to allow building in separate directory
Commit
a73cb2f26932d90a2d47a28e9c524e7f33dcffbd missed to change the
EXTRA_DATA section
Thomas Graf [Tue, 13 Sep 2011 21:21:52 +0000 (23:21 +0200)]
tools: Use LDADD and link against .la files instead of LDFLAGS and -llib
Thomas Graf [Tue, 13 Sep 2011 21:16:09 +0000 (23:16 +0200)]
route: Remove dead link_cache variable
Thomas Graf [Tue, 13 Sep 2011 21:13:51 +0000 (23:13 +0200)]
addr: Add missing header to <netlink/route/addr.h>
Fixes a gcc warning
Thomas Graf [Tue, 13 Sep 2011 20:58:08 +0000 (22:58 +0200)]
Switch to libtool versioning system
It has been a request that multiple libnl versions should be installabe
in parallel.
In order to achieve this, the basename of the library was changed to
libnl-3 which reflects the 3rd generation of libnl APIs. It also means
that release based library versioning is left behind and libtool
versioning is used instead.
Projects using pkgconfig will automatically link against the new library
basename and will not notice a difference.
The SO versioning is based on the glib model:
current := 100 * minor + micro - revision
revision := revision
age := age (number of backwards compatible versions)
Jan Engelhardt [Wed, 24 Aug 2011 10:09:46 +0000 (12:09 +0200)]
build: always install files into /etc/libnl
I observed that with the RedHat build target in the Open Build
Service, files were put into /etc rather than /etc/libnl.
Self-referential variables are a bad idea, and so just avoid this.
Thomas Graf [Tue, 13 Sep 2011 09:49:41 +0000 (11:49 +0200)]
Inform users about changed include location at end of configure script
Thomas Graf [Tue, 13 Sep 2011 09:48:18 +0000 (11:48 +0200)]
Install headers in ${includedir}/libnl3
This allows for multiple major versions to be installed in parallel. Pkg-config
files are adapted to provide appropriate cflags to find new header locations.
Thomas Graf [Tue, 13 Sep 2011 09:47:39 +0000 (11:47 +0200)]
lib: Use @MAJ_VERSION and @MAJ_MINOR@ for -version-info
Thomas Graf [Tue, 13 Sep 2011 09:07:23 +0000 (11:07 +0200)]
asciidoc xhtml stylesheet
Thomas Graf [Thu, 8 Sep 2011 13:00:07 +0000 (15:00 +0200)]
prepare for 3.2 release
Fall back to using libnl-*.3.pc files. It may be common to have multiple
generations of libnl installed but unlikely within the same major release.
Thomas Graf [Thu, 8 Sep 2011 13:33:55 +0000 (15:33 +0200)]
remove dist lines for non existing files
Thomas Graf [Thu, 8 Sep 2011 13:07:02 +0000 (15:07 +0200)]
Remove GPL-3.0 license file.
There is no code licensed GPL-3.0 so we might as well remove this file.
Thomas Graf [Thu, 8 Sep 2011 13:03:25 +0000 (15:03 +0200)]
fix license of lib/route/pktloc.c
As Jan Engelhardt pointed out, pktloc.c is currently licenses under the GPL
rather than the LGPL. This is a result of its previous existance in src/
which is GPL licensed. I missed to change its license when moving it to
lib/. Since I am the only contributor to the code, I am changing the license
hereby.
Thomas Graf [Thu, 8 Sep 2011 12:59:16 +0000 (14:59 +0200)]
Do not require python and swig to be present
Allows building without python and swig. Readd this using --enable-python
at some point.
Bryan Phillippe [Wed, 31 Aug 2011 18:11:59 +0000 (11:11 -0700)]
64bit unaligned access
This patch fixes an unaligned access for IPv6. On systems with strict alignment requirements, the unaligned access will either result in garbage data or a crash.
Jiri Pirko [Wed, 31 Aug 2011 09:14:43 +0000 (11:14 +0200)]
genl: genl_ctrl_grp_by_name: fix retval in case group id not found
Now the return value in case group id is not find is 0. Change it to
return -NLE_OBJ_NOTFOUND which makes more sense. This should not break
anything because genl_ctrl_grp_by_name is static and called only from
genl_ctrl_resolve_grp. genl_ctrl_resolve_grp already might return
-NLE_OBJ_NOTFOUND.
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Jiri Pirko [Tue, 30 Aug 2011 16:33:25 +0000 (18:33 +0200)]
socket: fix two typos
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Jiri Pirko [Tue, 30 Aug 2011 16:31:47 +0000 (18:31 +0200)]
socket: introduce nl_socket_modify_err_cb
This function does the same as nl_socket_modify_cb except for error
callback
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Jiri Pirko [Thu, 25 Aug 2011 13:14:07 +0000 (15:14 +0200)]
nl-link-name2ifindex: fix usage text
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Andrew Rybchenko [Tue, 30 Aug 2011 05:27:37 +0000 (09:27 +0400)]
Local port leak on nl_socket_alloc/nl_socket_set_local_port(, 0)
I've found a bug in the following scenario (fragment of code):
while (1) {
struct nl_sock *sk = nl_socket_alloc();
if (sk == NULL) {
fprintf(stderr, "Failed to allocate nl socket\n");
break;
}
nl_socket_set_local_port(sk, 0);
nl_socket_free(sk);
}
The problem is that nl_socket_set_local_port(, 0) does not
release local port if it is allocated before.
Thomas Graf [Fri, 12 Aug 2011 11:47:23 +0000 (13:47 +0200)]
htb: fix misplaced memset() overwriting already set htb prio option
Reported by Richard Cesar <spidla@spidlas.cz>
Thomas Graf [Fri, 12 Aug 2011 09:06:50 +0000 (11:06 +0200)]
doc: need to include @srcdir@/src not @top_srcdir@/src
Thomas Graf [Fri, 12 Aug 2011 08:45:47 +0000 (10:45 +0200)]
python: Include python/ in distribution and provide a README on how to build & install
Bryan Phillippe [Thu, 11 Aug 2011 18:43:46 +0000 (11:43 -0700)]
link: fix unaligned access to 64bit link stats
Thomas Graf [Thu, 11 Aug 2011 13:43:34 +0000 (15:43 +0200)]
Include all files necessary to build documentation in distribution
Thomas Graf [Thu, 11 Aug 2011 13:17:56 +0000 (15:17 +0200)]
make port map thread safe
This patch has been in Fedora and RHEL for a while. It adds a mutex
to protect the port map from concurrent thread accesses.
Original patch from Stefan Berger <stefanb@us.ibm.com>.
Modified to use configure.in to check for libpthread
Thomas Graf [Thu, 11 Aug 2011 13:06:29 +0000 (15:06 +0200)]
Avoid freeing memory if vasprintf() failed
Founds this bugfix in Fedora's SOURCES for libnl. Not sure who the
original author is but the bug should be fixed upstream as well.
Thomas Graf [Thu, 11 Aug 2011 12:57:59 +0000 (14:57 +0200)]
Allow building documentation out of the tree
Patch originally provided by Gaudenz Steinlin <gaudenz@debian.org>
Pavel Roskin [Thu, 4 Aug 2011 15:59:10 +0000 (11:59 -0400)]
Put "break" inside the "if" block in route_compare()
Pavel Roskin [Thu, 4 Aug 2011 15:59:03 +0000 (11:59 -0400)]
Make some functions and global variables static
Pavel Roskin [Thu, 4 Aug 2011 15:58:56 +0000 (11:58 -0400)]
Remove write-only variables in lib/cache.c
Thomas Graf [Thu, 11 Aug 2011 12:30:24 +0000 (14:30 +0200)]
3.1 release
Thomas Graf [Thu, 28 Jul 2011 14:23:57 +0000 (16:23 +0200)]
Updated link documentation
- API documentation
- developer guide
- enabled doxygen navbar
- fixed css
Thomas Graf [Wed, 27 Jul 2011 15:01:34 +0000 (17:01 +0200)]
Hack doxygen CSS to avoid stupid margins in modules listing
Thomas Graf [Mon, 25 Jul 2011 08:32:26 +0000 (10:32 +0200)]
include <linux/if.h> from <netlink/route/link.h> to export IFF_* flags
Thomas Graf [Thu, 21 Jul 2011 15:52:43 +0000 (17:52 +0200)]
use rtnl_link_set/get_type()
Thomas Graf [Thu, 21 Jul 2011 15:49:21 +0000 (17:49 +0200)]
removed autogenerated swig interface files from git tree
Thomas Graf [Thu, 21 Jul 2011 15:47:00 +0000 (17:47 +0200)]
VLAN: rtnl_link_is_vlan() function and API documentation
Thomas Graf [Thu, 21 Jul 2011 14:45:01 +0000 (16:45 +0200)]
Use 'link type' instead of 'link info type'
The term 'link type' is much more easier to understand than 'link info type'
rtnl_link_set/get_info_type() left around for backwards compatibility
Thomas Graf [Thu, 21 Jul 2011 14:41:45 +0000 (16:41 +0200)]
ignore python build directory
Thomas Graf [Thu, 21 Jul 2011 14:39:29 +0000 (16:39 +0200)]
ignore various generated files
Thomas Graf [Thu, 21 Jul 2011 14:38:04 +0000 (16:38 +0200)]
bonding link module
Thomas Graf [Thu, 21 Jul 2011 14:24:31 +0000 (16:24 +0200)]
more documentation updates
- improved stylesheets for both doxygen and asciidoc
- use of xml doxygen layout
- python script to resolve <<foo>> asciidoc references to
<<foo, title>> based on the target caption
- graphics for netlink and netlink error headers
- more link documentation
Thomas Graf [Thu, 21 Jul 2011 10:27:52 +0000 (12:27 +0200)]
Include IFLA_LINK in link messages
Thomas Graf [Mon, 18 Jul 2011 06:50:42 +0000 (08:50 +0200)]
Documentation updates
- update to asciidoc 8.6.5
- added doc/README
- switched to toc2
- started adding link documentation
Thomas Graf [Thu, 14 Jul 2011 10:48:00 +0000 (12:48 +0200)]
documentation updates
Thomas Graf [Thu, 14 Jul 2011 08:51:49 +0000 (10:51 +0200)]
Support for NLM_F_INTR
Check if a dump was interrupted and needs to be redone
Thomas Graf [Tue, 21 Jun 2011 09:34:28 +0000 (11:34 +0200)]
Merge branch 'master' of master.kernel.org:/pub/scm/libs/netlink/libnl
Christian Ruppert [Mon, 20 Jun 2011 22:05:08 +0000 (00:05 +0200)]
Don't redefine offsetof when already defined by e.g. stddef.h
Thomas Graf [Wed, 15 Jun 2011 15:37:28 +0000 (17:37 +0200)]
socket: Set SOCK_CLOEXEC if available
Reported by Марк Коренберг <socketpair@gmail.com>
Thomas Graf [Wed, 15 Jun 2011 14:23:35 +0000 (16:23 +0200)]
neigh: include ndm flags while building message
Reported by jeff courington <jeff_courington@hotmail.com>
Thomas Graf [Fri, 10 Jun 2011 11:55:29 +0000 (13:55 +0200)]
Work on libnl-python
Changes too numerous to describe them
Thomas Graf [Thu, 9 Jun 2011 11:32:13 +0000 (13:32 +0200)]
HTB: Add support for level and direct pkt stats, complete access functions
- Adds support for htb class level and direct packet
statistics
- Complete all get/set access functions
- Complete error handling
- Documentation
Thomas Graf [Thu, 9 Jun 2011 10:56:52 +0000 (12:56 +0200)]
Update local copies of include/linux
Thomas Graf [Thu, 9 Jun 2011 10:30:15 +0000 (12:30 +0200)]
Provide documentation for rtnl_tc_data() and rtnl_tc_data_check()
Thomas Graf [Thu, 9 Jun 2011 10:29:21 +0000 (12:29 +0200)]
Add nl_rate2str()
Thomas Graf [Thu, 9 Jun 2011 10:28:04 +0000 (12:28 +0200)]
Add rtnl_tc_data_check()
Behaves like rtnl_tc_data() but verifies that the traffic control
object is of the expected type.
Thomas Graf [Wed, 11 May 2011 07:33:29 +0000 (09:33 +0200)]
Provide silent variation of nl_cache_require()
Use in addr and tc layer to avoid warnings being printed if no
cache is available.
Thomas Graf [Tue, 10 May 2011 10:17:33 +0000 (12:17 +0200)]
python interface to netlink protocols
currently includes experimental support for links, addresses
and some traffic control
Thomas Graf [Wed, 4 May 2011 15:47:09 +0000 (17:47 +0200)]
Use name "global" instead of "universe" for largest scope
This name is more widespread and easier to understand even though
it is less correct.
Thomas Graf [Tue, 3 May 2011 09:48:14 +0000 (11:48 +0200)]
addr: store link object and provide rtnl_addr_get()
stores rtnl_link object in address if cache is availble. Provide access
via rtnl_addr_get_link() and rtnl_addr_set_link().
Add rtnl_addr_get() which searches a address cache for an address
matching ifindex and local address.
Romary Sonrier [Tue, 3 May 2011 09:26:21 +0000 (11:26 +0200)]
Adding rule with "From" option doesn't work
OK i found the bug, is is the patch !!
Can someone push it into the git tree ?
Regards,
Romary Sonrier
=========================
My analysis:
I guess that the pay load is *struct fib_rule_hdr*
struct fib_rule_hdr {
__u8 family;
__u8 dst_len;
__u8 src_len;
__u8 tos;
__u8 table;
__u8 res1; /* reserved */
__u8 res2; /* reserved */
__u8 action;
__u32 flags;
};
> [PAYLOAD] 12 octets
> 02 00 00 00 0a 00 00 01 00 00 00 00 ............
so
family = 02 , fine
table = 10, fine
but
src_len =0 !!!! should be 32
Thomas Graf [Thu, 21 Apr 2011 12:58:05 +0000 (14:58 +0200)]
Add missing declaration of rtnl_tc_get_link()
Thomas Graf [Thu, 21 Apr 2011 12:48:54 +0000 (14:48 +0200)]
Provide rtnl_tc_get_link() and fix link refcnt
Adds rtnl_tc_get_link() returning the link associated with a tc
object.
Don't clone link associated with tc object when cloning the tc
object, refer to same link instead and bump refcnt.
Fix refcnt leak when assigning link in msg parser.
Thomas Graf [Thu, 21 Apr 2011 12:46:06 +0000 (14:46 +0200)]
Fix clone() of AF specific link data
Passed the original link to ao_clone() instead of the new one.
Thomas Graf [Wed, 20 Apr 2011 14:30:49 +0000 (16:30 +0200)]
Set tc->tc_link if link cache is available
When parsing tc objects, lookup link in link cache if such a
cache is available.
Thomas Graf [Wed, 20 Apr 2011 14:29:42 +0000 (16:29 +0200)]
Improve readability of classid string representation
1: is more readable than 01:
Thomas Graf [Wed, 20 Apr 2011 09:53:04 +0000 (11:53 +0200)]
Expose <netlink/route/link/inet.h>
Thomas Graf [Tue, 19 Apr 2011 07:57:35 +0000 (09:57 +0200)]
Support link info types with no payload
Thomas Graf [Tue, 19 Apr 2011 07:57:14 +0000 (09:57 +0200)]
Add support for ARPHRD_NONE
Thomas Graf [Fri, 15 Apr 2011 13:31:47 +0000 (15:31 +0200)]
export rtnl_link_add() and rtnl_link_build_add_request()
Thomas Graf [Fri, 15 Apr 2011 13:31:22 +0000 (15:31 +0200)]
dummy interface support
Thomas Graf [Fri, 15 Apr 2011 13:30:46 +0000 (15:30 +0200)]
Support for rtnl_link_add()
API for adding virtual links