[Patch v2 4/4] veth: use nl_object_clone() to deep copy rtnl_link object

Thomas Graf tgraf at suug.ch
Mon Mar 31 07:09:25 EDT 2014


On 03/28/14 at 06:08pm, Cong Wang wrote:
> Currently we use memcpy() to copy the peer rtnl_link for veth device,
> this is wrong, we should do deep copy by calling nl_object_clone()
> recursively. We should be careful and need to make sure we only call
> it once.
> 
> Signed-off-by: Cong Wang <xiyou.wangcong at gmail.com>

Acked-by: Thomas Graf <tgraf at suug.ch>



More information about the libnl mailing list