summaryrefslogtreecommitdiffstats
path: root/lib/utils.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-11-29 21:41:46 (GMT)
committerThomas Haller <thaller@redhat.com>2016-11-29 21:46:01 (GMT)
commit6f9620721200d171d6a317573b3c1c00141f036b (patch)
tree2d2c6b2bbf28c27ee48e80a4bfdf1175f8974b35 /lib/utils.c
parent15207b583f56c58e598525dd4ea1db5a169be590 (diff)
downloadlibnl-6f9620721200d171d6a317573b3c1c00141f036b.zip
libnl-6f9620721200d171d6a317573b3c1c00141f036b.tar.gz
libnl-6f9620721200d171d6a317573b3c1c00141f036b.tar.bz2
link: set ifi_change flags for rtnl_link_build_add_request()
For the add-request, we should set ifi_change flags together with the ifi_flags. A similar thing is done by rtnl_link_build_change_request() in commit 34ccb7210f1238f89229c117dc3d28cea7ae00bb. https://github.com/thom311/libnl/issues/111
Diffstat (limited to 'lib/utils.c')
-rw-r--r--lib/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils.c b/lib/utils.c
index 7d339ae..0427322 100644
--- a/lib/utils.c
+++ b/lib/utils.c
@@ -1191,7 +1191,7 @@ int nl_has_capability (int capability)
NL_CAPABILITY_RTNL_ADDR_PEER_ID_FIX,
NL_CAPABILITY_NL_ADDR_FILL_SOCKADDR,
NL_CAPABILITY_XFRM_SEC_CTX_LEN,
- 0,
+ NL_CAPABILITY_LINK_BUILD_ADD_REQUEST_SET_CHANGE,
0),
/* IMPORTANT: these capability numbers are intended to be universal and stable
* for libnl3. Don't allocate new numbers on your own that differ from upstream