]> granicus.if.org Git - libnl/commitdiff
route/addr: add capability NL_CAPABILITY_RTNL_ADDR_PEER_FIX to indicate address fixes
authorThomas Haller <thaller@redhat.com>
Wed, 29 Jun 2016 08:25:13 +0000 (10:25 +0200)
committerThomas Haller <thaller@redhat.com>
Wed, 29 Jun 2016 08:26:24 +0000 (10:26 +0200)
Signed-off-by: Thomas Haller <thaller@redhat.com>
include/netlink/utils.h
lib/utils.c

index 43c9147f82839ccd4487fb6a3e17a50c22545727..73e978a1ee92705c644fd5a9ec2b4d971c3b7038 100644 (file)
@@ -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
index 0c91c975e9a2084405beb35617cc97999f9ba51d..ecaed5ceff6d44f0798460f54bb1d7aa885e2763 100644 (file)
@@ -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,