History log of /external/libnl/lib/route/addr.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0e4f54d288b8d1d06ee40122d6bf3ed971870d47 07-Apr-2010 Patrick McHardy <kaber@trash.net> addr: add NL_DUMP_ENV function

Signed-off-by: Patrick McHardy <kaber@trash.net>
/external/libnl/lib/route/addr.c
f5f49c224835c555df9e2c1f79ac5adf4640f4a8 07-Apr-2010 Patrick McHardy <kaber@trash.net> addr: restore anycast functions

Seems it got lost during some cleanups.

Signed-off-by: Patrick McHardy <kaber@trash.net>
/external/libnl/lib/route/addr.c
e0af9e1802d4f0c49e838ff94a187f590eb9e2cd 20-Aug-2009 Dan Winship <danw@redhat.com> Fix rtnl_addr caching

addr_obj.ops.oo_id_attrs included ADDR_ATTR_PEER, so any address that
didn't have a peer address set would compare as unequal to itself,
meaning it could never be removed from a cache after it was added, etc.
/external/libnl/lib/route/addr.c
cfcfca070355b246028df60da79813f09ed65755 20-Oct-2008 Thomas Graf <tgr@plip.localdomain> Add internal wait_for_ack() which only waits for ACK if !NL_NO_AUTO_ACK

This changeset ensures that internal code properly synchronizes to
ACKs if ACKs are enabled and otherwise return immediately.
/external/libnl/lib/route/addr.c
5702d4c1b97616f5212da31db01a2f3c79c15b7c 07-Oct-2008 Wolfgang Steudel <Wolfgang.Steudel@Stud.TU-Ilmenau.de> Only include local addr as peer addr if provided

we're using libnl-1.1 for a project. When trying to delete all
addresses of an interface by only setting interface index and
address family of an rtnl_addr and executing rtnl_addr_delete()
we received some error (I don't remember what it was).

The bug(?) is in build_addr_msg() in lib/route/addr.c:
IFA_ADDRESS is set to a_local when a_peer is not set,
without checking if a_local was set. We just added
if (tmpl->ce_mask & ADDR_ATTR_LOCAL)
after the "else" (line 496 in the current git).
/external/libnl/lib/route/addr.c
13ab2441ced84cfc093734b257c43fa468cb22fd 17-Jun-2008 Thomas Graf <tgr@lsx.localdomain> Remove XML dumping

Bloats the library, not frequently used
/external/libnl/lib/route/addr.c
ab578b9ca00b19ad6b66283ec08d004f9fc391d6 17-Jun-2008 Thomas Graf <tgr@lsx.localdomain> Improvements to address utilities

- Moved env var dumping to nl-addr-list.c
- support for ipv6 lifetimes
- correct and complete help texts
/external/libnl/lib/route/addr.c
d84430702496f617c01c5e2d27d0e82e02390bb7 23-May-2008 Thomas Graf <tgr@lsx.localdomain> Remove old line counting while dumping
/external/libnl/lib/route/addr.c
0d925c58069b2d29f17c2bde14192b6f35ccac4d 15-May-2008 Thomas Graf <tgr@lsx.localdomain> Remove references to unused attribute anycast
/external/libnl/lib/route/addr.c
28233246cd8fad47613e7ffd85ea0b1d69c0f8c2 15-May-2008 Thomas Graf <tgr@lsx.localdomain> Allow parser callbacks to return NL_OK, NL_SKIP, NL_EXIT

Obsoletes internal P_ACCEPT/P_IGNORE
/external/libnl/lib/route/addr.c
1155370f520cb64657e25153255cf7dc1424317f 15-May-2008 Thomas Graf <tgr@lsx.localdomain> Rename struct nl_handle to struct nl_sock

The idea of a common handle is long revised and only misleading,
nl_handle really represents a socket with some additional
action handlers assigned to it.

Alias for nl_handle is kept for backwards compatibility.
/external/libnl/lib/route/addr.c
0cf780859cbce363a6e2cd4b8d19c5498a3530f5 14-May-2008 Thomas Graf <tgr@lsx.localdomain> Check length of provided address label
/external/libnl/lib/route/addr.c
b4fbe1d34d6f54045b5c6236d86aacd4340ec83d 14-May-2008 Thomas Graf <tgr@lsx.localdomain> Replace RTNL_LINK_NOT_FOUND with just 0

The interface index 0 is reserved and can be safely used to
signal that the device does not exist.
/external/libnl/lib/route/addr.c
eed2afaab7aa72fae393a395a8879b91a922ff5e 14-May-2008 Thomas Graf <tgr@lsx.localdomain> Remove obsolete nla_get_addr() and nla_get_data()

Replaces obsolete calls to nla_get_addr() and nla_get_data()
with nl_addr_alloc_attr() respectively nl_data_alloc_attr().

Also fixes missing error handling while parsing routing multipath
configuration.
/external/libnl/lib/route/addr.c
8a3efffa5b3fde252675239914118664d36a2c24 14-May-2008 Thomas Graf <tgr@lsx.localdomain> Thread-safe error handling

In order for the interface to become more thread safe, the error
handling was revised to no longer depend on a static errno and
error string buffer.

This patch converts all error paths to return a libnl specific
error code which can be translated to a error message using
nl_geterror(int error). The functions nl_error() and
nl_get_errno() are therefore obsolete.

This change required various sets of function prototypes to be
changed in order to return an error code, the most prominent
are:

struct nl_cache *foo_alloc_cache(...);
changed to:
int foo_alloc_cache(..., struct nl_cache **);

struct nl_msg *foo_build_request(...);
changed to:
int foo_build_request(..., struct nl_msg **);

struct foo *foo_parse(...);
changed to:
int foo_parse(..., struct foo **);

This pretty much only leaves trivial allocation functions to
still return a pointer object which can still return NULL to
signal out of memory.

This change is a serious API and ABI breaker, sorry!
/external/libnl/lib/route/addr.c
535e83162249ed6274ba46bc72d8cc683ba20e17 29-Apr-2008 Thomas Graf <tgr@lsx.localdomain> Big routing code rework (API/ABI BREAK!)

Adds all missing routing attributes and brings the routing
related code to a working state. In the process the API
was broken several times with the justification that nobody
is using this code yet.

The changes include new example code which is also a prototype
for how plain CLI tools could look like to control routes.
/external/libnl/lib/route/addr.c
155ad439a49df034ec58ee4218834bc5b0120515 17-Dec-2007 Thomas Graf <tgr@deb.localdomain> Fix memory leak when parsing netlink messages into caches

The reference created by the parsers was never given back.
/external/libnl/lib/route/addr.c
3040a1d6254465bed9e44e4d1bf279c2c50cd16a 17-Sep-2007 Thomas Graf <tgraf@suug.ch> 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.
/external/libnl/lib/route/addr.c
44d362409d5469aed47d19e7908d19bd194493a4 15-Sep-2007 Thomas Graf <tgraf@suug.ch> Initial import
/external/libnl/lib/route/addr.c