]> Pileus Git - ~andy/linux/commit
netfilter: nft_reject: fix endianness in dump function
authorEric Leblond <eric@regit.org>
Thu, 12 Dec 2013 07:51:59 +0000 (08:51 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 12 Dec 2013 08:37:39 +0000 (09:37 +0100)
commita3adadf3018102c24754e0b53a5515c40fbaff4a
treeca499de6e8388500e81a8fdc32443105eae67360
parentf01b3926ee645974f549f4a6921268142047717c
netfilter: nft_reject: fix endianness in dump function

The dump function in nft_reject_ipv4 was not converting a u32
field to network order before sending it to userspace, this
needs to happen for consistency with other nf_tables and
nfnetlink subsystems.

Signed-off-by: Eric Leblond <eric@regit.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/nft_reject_ipv4.c