summaryrefslogtreecommitdiffstats
path: root/src/set.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2013-09-13 16:44:47 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-09-14 20:55:39 +0200
commit21933b7817d313c08b69faf772685f87f0f16356 (patch)
tree4cf2b0798256d014d57c67c2ad8bef518eccb0af /src/set.c
parent4e02019fb2b8ddcf374c7e026dbdd7881dc09506 (diff)
expr: log: use real length when fetching attributes
NFTA_LOG_SNAPLEN is u32 and NFTA_LOG_QTHRESHOLD is u16. Without this, netlink messages from kernel fail mnl_validate step when QTHRESH or SNAPLEN was set. Also, nft_rule_expr_log_get must update data_length, else 'nft list' doesn't show log arguments (prefix, group ..) because the netlink message decoding uses nft_rule_expr_get_u16/32 etc. which validate the length, too. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/set.c')
0 files changed, 0 insertions, 0 deletions