summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-06-29 08:25:13 (GMT)
committerThomas Haller <thaller@redhat.com>2016-06-29 08:26:24 (GMT)
commit3711d44e3209a1262019d275842394faa93c605b (patch)
tree4b3f19f328fdea858f977a5f42e5cddebadcf28b
parent62f0fdb9c150779d04e2d83d2916b74f8789e076 (diff)
downloadlibnl-3711d44e3209a1262019d275842394faa93c605b.zip
libnl-3711d44e3209a1262019d275842394faa93c605b.tar.gz
libnl-3711d44e3209a1262019d275842394faa93c605b.tar.bz2
route/addr: add capability NL_CAPABILITY_RTNL_ADDR_PEER_FIX to indicate address fixes
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r--include/netlink/utils.h7
-rw-r--r--lib/utils.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/include/netlink/utils.h b/include/netlink/utils.h
index 43c9147..73e978a 100644
--- a/include/netlink/utils.h
+++ b/include/netlink/utils.h
@@ -204,6 +204,13 @@ enum {
NL_CAPABILITY_XFRM_SA_KEY_SIZE = 17,
#define NL_CAPABILITY_XFRM_SA_KEY_SIZE NL_CAPABILITY_XFRM_SA_KEY_SIZE
+ /**
+ * Properly handle nl_object_identity() for AF_INET and AF_INET6 addresses
+ * and properly handle the peer/IFA_ADDRESS for IPv4 addresses.
+ */
+ NL_CAPABILITY_RTNL_ADDR_PEER_FIX = 18,
+#define NL_CAPABILITY_RTNL_ADDR_PEER_FIX NL_CAPABILITY_RTNL_ADDR_PEER_FIX
+
__NL_CAPABILITY_MAX,
NL_CAPABILITY_MAX = (__NL_CAPABILITY_MAX - 1),
#define NL_CAPABILITY_MAX NL_CAPABILITY_MAX
diff --git a/lib/utils.c b/lib/utils.c
index 0c91c97..ecaed5c 100644
--- a/lib/utils.c
+++ b/lib/utils.c
@@ -1162,7 +1162,7 @@ int nl_has_capability (int capability)
NL_CAPABILITY_NL_OBJECT_DIFF64),
_NL_SET (2,
NL_CAPABILITY_XFRM_SA_KEY_SIZE,
- 0,
+ NL_CAPABILITY_RTNL_ADDR_PEER_FIX,
0,
0,
0,