[INET]: Fix accidentally broken inet(6)_hash_connect's port offset calculations.
authorPavel Emelyanov <xemul@openvz.org>
Tue, 5 Feb 2008 11:14:44 +0000 (03:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Feb 2008 11:14:44 +0000 (03:14 -0800)
commit5d8c0aa9433b09387d9021358baef7939f9b32c4
tree839a532abef00a33e3b2357340ad52cec92bce5f
parent2bfc79de2b6482955f0e352da7e53787dd8167c0
[INET]: Fix accidentally broken inet(6)_hash_connect's port offset calculations.

The port offset calculations depend on the protocol family, but, as
Adrian noticed, I broke this logic with the commit

5ee31fc1ecdcbc234c8c56dcacef87c8e09909d8
[INET]: Consolidate inet(6)_hash_connect.

Return this logic back, by passing the port offset directly into the
consolidated function.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Noticed-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_hashtables.h
net/ipv4/inet_hashtables.c
net/ipv6/inet6_hashtables.c