]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0286a26146026ec8bed4cf0ec273670cbd73b770
tree4f52de427646cbff6803e4aefd68db337632d67a
parentfb2ee35fd5d9a51bcd415ad990b38fcb05fb5af1
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