summaryrefslogtreecommitdiffstats
path: root/lib/utils.c
diff options
context:
space:
mode:
authorCong Wang <xiyou.wangcong@gmail.com>2014-04-29 17:38:30 (GMT)
committerThomas Haller <thaller@redhat.com>2014-04-30 09:08:15 (GMT)
commit0ba7e663ce3f6bd624c0b8f4dc27a33cfcb0f5d1 (patch)
tree7fecb3bbe188d274d8b281f60fdb60880bc8db15 /lib/utils.c
parentf55ef93d1eb9d792af2a3b79c055ee21bf14e9ea (diff)
downloadlibnl-0ba7e663ce3f6bd624c0b8f4dc27a33cfcb0f5d1.zip
libnl-0ba7e663ce3f6bd624c0b8f4dc27a33cfcb0f5d1.tar.gz
libnl-0ba7e663ce3f6bd624c0b8f4dc27a33cfcb0f5d1.tar.bz2
veth: grab a reference for rtnl_link_veth_get_peer()
So that users could keep a refcount for the peer. The capability trick is from Thomas Haller. Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
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 49ff120..ac36493 100644
--- a/lib/utils.c
+++ b/lib/utils.c
@@ -1145,7 +1145,7 @@ int nl_has_capability (int capability)
_NL_SETV((i), 3, (v3)) | _NL_SETV((i), 7, (v7)) )
_NL_SET(0,
NL_CAPABILITY_ROUTE_BUILD_MSG_SET_SCOPE,
- 0,
+ NL_CAPABILITY_ROUTE_LINK_VETH_GET_PEER_OWN_REFERENCE,
0,
0,
0,