No description
Find a file
roopa ded20487fd link: Fix rtnl_link_af_data_compare return value
This patch fixes a bug where because of the af_ops check
being first in the function, we were returning ~0 if af_ops
was null even if both objects really did not have af_data
and we should be returning 0.

Its better to have the af_data present check before anything else.

So, Rearranged some of the code in rtnl_link_af_data_compare.
Changes include:
	- Do the attribute present check before anything else
	- If ao_compare op not present, return ~0

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Reviewed-by: Nolan Leake <nolan@cumulusnetworks.com>
Reviewed-by: Shrijeet Mukherjee <shm@cumulusnetworks.com>
Reviewed-by: Wilson Kok <wkok@cumulusnetworks.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-02-24 17:11:36 +01:00
doc bond: Provide rtnl_link_bond_alloc() 2013-02-14 12:48:00 +01:00
etc pktloc: support to specify a shift operator for packet locations 2010-11-04 20:01:36 +01:00
include bond: Provide rtnl_link_bond_alloc() 2013-02-14 12:48:00 +01:00
lib link: Fix rtnl_link_af_data_compare return value 2013-02-24 17:11:36 +01:00
m4 doc: Check documentation generation requirements with autoconf 2012-05-09 10:06:24 +02:00
man genl: Update genl-ctrl-list(8) 2012-06-01 13:10:03 +02:00
python Enabled the use of Links as context managers. 2012-10-04 16:36:55 -04:00
src Merge pull request #29 from rmfought/natdir32 2013-01-24 08:32:35 -08:00
tests bond: Provide rtnl_link_bond_alloc() 2013-02-14 12:48:00 +01:00
.gitignore build: use AC_CONFIG_AUX_DIR 2012-11-26 21:03:14 +01:00
autogen.sh doc: Split doc/ into separate packages 2012-10-19 16:16:06 +02:00
ChangeLog libnl 3.2.10 2012-06-06 11:43:53 +02:00
configure.ac 3.2.21 release 2013-01-24 15:00:26 +01:00
COPYING Update COPYING to fix FSF address 2012-01-17 12:38:37 +01:00
libnl-3.0.pc.in Switch to libtool versioning system 2011-09-13 22:58:08 +02:00
libnl-cli-3.0.pc.in Add libnl-cli-3.0 to pkg-config tool 2011-10-10 11:39:24 +02:00
libnl-genl-3.0.pc.in Switch to libtool versioning system 2011-09-13 22:58:08 +02:00
libnl-nf-3.0.pc.in Switch to libtool versioning system 2011-09-13 22:58:08 +02:00
libnl-route-3.0.pc.in Switch to libtool versioning system 2011-09-13 22:58:08 +02:00
Makefile.am make: automake provides a cscope target these days 2012-12-21 13:30:21 +01:00