netfilter: nft_ct: split nft_ct_init() into two functions for get/set
authorPatrick McHardy <kaber@trash.net>
Sat, 29 Mar 2014 10:43:03 +0000 (10:43 +0000)
committerPablo Neira Ayuso <pablo@gnumonks.org>
Wed, 2 Apr 2014 19:29:45 +0000 (21:29 +0200)
commitfe92ca45a170cb8d09c163db23d46634110b3c2f
tree0042776b9e533ad2e0cf2c1b63a46d68e4e35d23
parentd2caa696addd70e686a05b3360c40cb40b106286
netfilter: nft_ct: split nft_ct_init() into two functions for get/set

For value spanning multiple registers, we need to validate the length
of data loads. In order to add this to nft_ct, we need the length from
key validation. Split the nft_ct_init() function into two functions
for the get and set operations as preparation for that.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_ct.c