]> granicus.if.org Git - libnl/commit
veth: grab a reference for rtnl_link_veth_get_peer()
authorCong Wang <xiyou.wangcong@gmail.com>
Tue, 29 Apr 2014 17:38:30 +0000 (10:38 -0700)
committerThomas Haller <thaller@redhat.com>
Wed, 30 Apr 2014 09:08:15 +0000 (11:08 +0200)
commit0ba7e663ce3f6bd624c0b8f4dc27a33cfcb0f5d1
tree7fecb3bbe188d274d8b281f60fdb60880bc8db15
parentf55ef93d1eb9d792af2a3b79c055ee21bf14e9ea
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>
include/netlink/utils.h
lib/route/link/veth.c
lib/utils.c
tests/test-create-veth.c