netfilter: nf_tables: Use nla_put_be32() to dump immediate parameters
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 26 Aug 2016 11:42:17 +0000 (13:42 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 26 Aug 2016 15:30:21 +0000 (17:30 +0200)
commit7073b16f3dff83df1b0794262386abb869e8d180
tree6a7d3db72abb1155c11920e670247629d3af38e9
parentc016c7e45ddfa5085b35b644e659ec014969740d
netfilter: nf_tables: Use nla_put_be32() to dump immediate parameters

nft_dump_register() should only be used with registers, not with
immediates.

Fixes: cb1b69b0b15b ("netfilter: nf_tables: add hash expression")
Fixes: 91dbc6be0a62("netfilter: nf_tables: add number generator expression")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_hash.c
net/netfilter/nft_numgen.c