netfilter: fix endian bug in conntrack printks
authorHarvey Harrison <harvey.harrison@gmail.com>
Sat, 28 Mar 2009 15:38:30 +0000 (15:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Mar 2009 06:55:57 +0000 (23:55 -0700)
commitf940964901aa69e28ce729d7614061d014184472
tree4f52de427646cbff6803e4aefd68db337632d67a
parent3e8af307bfe3b6318a1aaaf8ce18d0af7ddf2ea2
netfilter: fix endian bug in conntrack printks

dcc_ip is treated as a host-endian value in the first printk,
but the second printk uses %pI4 which expects a be32.  This
will cause a mismatch between the debug statement and the
warning statement.

Treat as a be32 throughout and avoid some byteswapping during
some comparisions, and allow another user of HIPQUAD to bite the
dust.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nf_conntrack_irc.c