tcpv[46]: fix md5 pseudoheader address field ordering
commit78e645cb890b0f32ea81a974e29427d9cd2f64f0
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Thu, 9 Oct 2008 21:37:47 +0000 (9 14:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Oct 2008 21:37:47 +0000 (9 14:37 -0700)
tree338dfe7e005dcc835b57f4cd43b6fe0da7b2f64e
parentdf58ef51caea073f4b45857c51f445f65267dac7
tcpv[46]: fix md5 pseudoheader address field ordering

Maybe it's just me but I guess those md5 people made a mess
out of it by having *_md5_hash_* to use daddr, saddr order
instead of the one that is natural (and equal to what csum
functions use). For the segment were sending, the original
addresses are reversed so buff's saddr == skb's daddr and
vice-versa.

Maybe I can finally proceed with unification of some code
after fixing it first... :-)

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c