netfilter: nf_tables_trace: fix endiness when dump chain policy
authorLiping Zhang <liping.zhang@spreadtrum.com>
Fri, 2 Sep 2016 12:49:12 +0000 (20:49 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 5 Sep 2016 17:28:23 +0000 (19:28 +0200)
commit5210d393ef84e5d2a4854671a9af2d97fd1b8dd4
tree25a5dd8d46c1c8474593aed3daf19d043bd45b7e
parent6e1ce3c3451291142a57c4f3f6f999a29fb5b3bc
netfilter: nf_tables_trace: fix endiness when dump chain policy

NFTA_TRACE_POLICY attribute is big endian, but we forget to call
htonl to convert it. Fortunately, this attribute is parsed as big
endian in libnftnl.

Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_trace.c