mirror of
https://gitee.com/openharmony/third_party_libnl
synced 2024-11-27 20:20:30 +00:00
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:
parent
dfaba51b5b
commit
99b1d8acf8
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user