]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: fix wrong datatype in nft_validate_data_load()
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 27 Dec 2013 23:59:38 +0000 (00:59 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 28 Dec 2013 21:32:28 +0000 (22:32 +0100)
commit6ff87aed401fa8ebdd00bcc2bd59c43432fc9917
tree2531aa5fe8377d3374cc138963e2d52ff6bf12ab
parente34bc3538d1b591063dbd28fbf6904d0d541bb19
netfilter: nf_tables: fix wrong datatype in nft_validate_data_load()

This patch fixes dictionary mappings, eg.

 add rule ip filter input meta dnat set tcp dport map { 22 => 1.1.1.1, 23 => 2.2.2.2 }

The kernel was returning -EINVAL in nft_validate_data_load() since
the type of the set element data that is passed was the real userspace
datatype instead of NFT_DATA_VALUE.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c