netlink: add nla_policy_len()
authorHolger Eitzenberger <holger@eitzenberger.org>
Wed, 25 Mar 2009 17:26:30 +0000 (18:26 +0100)
committerPatrick McHardy <kaber@trash.net>
Wed, 25 Mar 2009 17:26:30 +0000 (18:26 +0100)
commite487eb99cf9381a4f8254fa01747a85818da612b
tree2381e552d88063982bea03a16db942ebcc295fc2
parentd0dba7255b541f1651a88e75ebdb20dd45509c2f
netlink: add nla_policy_len()

It calculates the max. length of a Netlink policy, which is usefull
for allocating Netlink buffers roughly the size of the actual
message.

Signed-off-by: Holger Eitzenberger <holger@eitzenberger.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/net/netlink.h
net/netlink/attr.c