datapath: Use nla_memcpy() to memcpy() data from attributes
authorThomas Graf <tgraf@suug.ch>
Sat, 30 Mar 2013 01:10:31 +0000 (18:10 -0700)
committerJesse Gross <jesse@nicira.com>
Sat, 30 Mar 2013 01:10:31 +0000 (18:10 -0700)
commitbf3d6fce9472742bc69939898ad4f0e1c97d69e6
treea7e4a2abc85ab2a8c59f544dc99e02080c073952
parent7c3072cc440eb76f1960c2a914d9d7c87fe71ee3
datapath: Use nla_memcpy() to memcpy() data from attributes

Less error prone as it takes into account the length of both the
destination buffer and the source attribute and documents when
data is copied from an attribute.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/datapath.c