lib: capability NL_CAPABILITY_RTNL_ADDR_PEER_ID_FIX for ID comparison of v4 addresses

The ID attributes for IPv4 addresses were broken which causes wrong
nl_object_identical() and cache lookup.

This capability shall indicate that the bug was fixed.

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2016-08-14 11:05:48 +02:00
parent dfaba51b5b
commit 99b1d8acf8
2 changed files with 8 additions and 1 deletions

View File

@ -217,6 +217,13 @@ enum {
NL_CAPABILITY_VERSION_3_2_28 = 19,
#define NL_CAPABILITY_VERSION_3_2_28 NL_CAPABILITY_VERSION_3_2_28
/**
* After NL_CAPABILITY_RTNL_ADDR_PEER_FIX, a follow up regression to lookup
* IPv4 addresses in the cache was fixed (PR#105).
*/
NL_CAPABILITY_RTNL_ADDR_PEER_ID_FIX = 20,
#define NL_CAPABILITY_RTNL_ADDR_PEER_ID_FIX NL_CAPABILITY_RTNL_ADDR_PEER_ID_FIX
__NL_CAPABILITY_MAX,
NL_CAPABILITY_MAX = (__NL_CAPABILITY_MAX - 1),
#define NL_CAPABILITY_MAX NL_CAPABILITY_MAX

View File

@ -1164,7 +1164,7 @@ int nl_has_capability (int capability)
NL_CAPABILITY_XFRM_SA_KEY_SIZE,
NL_CAPABILITY_RTNL_ADDR_PEER_FIX,
NL_CAPABILITY_VERSION_3_2_28,
0,
NL_CAPABILITY_RTNL_ADDR_PEER_ID_FIX,
0,
0,
0,