]> bbs.cooldavid.org Git - net-next-2.6.git/commit
[XFRM] netlink: Use nlmsg_new() and type-safe size calculation helpers
authorThomas Graf <tgraf@suug.ch>
Wed, 22 Aug 2007 20:57:39 +0000 (13:57 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:48:22 +0000 (16:48 -0700)
commit7deb2264909ec82ae4696dd73d8ffce6814c9114
treebee682118f12c19c2cd8cbdfe89165a221bfdc77
parentcfbfd45a8c4c0c8dd8ed491caefdeffd94acf9e4
[XFRM] netlink: Use nlmsg_new() and type-safe size calculation helpers

Moves all complex message size calculation into own inlined helper
functions and makes use of the type-safe netlink interface.

Using nlmsg_new() simplifies the calculation itself as it takes care
of the netlink header length by itself.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_user.c