]> err.no Git - linux-2.6/commit
[XFRM] netlink: Move algorithm length calculation to its own function
authorThomas Graf <tgraf@suug.ch>
Wed, 22 Aug 2007 20:56:23 +0000 (13:56 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:48:21 +0000 (16:48 -0700)
commitc26445acbc292ab0466407db6d3bdcc5cbe1d03b
tree15cc1f7b56929ffd269d5960d130e5c30c47277b
parentc0144beaeca42b643f4d1632f2b24fdc6c48a170
[XFRM] netlink: Move algorithm length calculation to its own function

Adds alg_len() to calculate the properly padded length of an
algorithm attribute to simplify the code.

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