Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.24.6 /include/net/inet_sock.h

Filename:/include/net/inet_sock.h
Lines Added:2
Lines Deleted:1
Also changed in: (Previous) 2.6.24.5  2.6.24.4  2.6.24.4-rc3  2.6.24.4-rc2  2.6.24.4-rc1  2.6.24 
(Following) 2.6.24.7  2.6.25-git19  2.6.25-git20  2.6.26-rc1  2.6.26-rc2  2.6.26-rc3 

Location
[  2.6.24.6
  [  include
    [  net
       o  inet_sock.h

Patch

diff --git a/include/net/inet_sock.h b/include/net/inet_sock.h
index 70013c5..89cd011 100644
--- a/include/net/inet_sock.h
+++ b/include/net/inet_sock.h
@@ -175,7 +175,8 @@ extern void build_ehash_secret(void);
 static inline unsigned int inet_ehashfn(const __be32 laddr, const __u16 lport,
                const __be32 faddr, const __be16 fport)
 {
-   return jhash_2words((__force __u32) laddr ^ (__force __u32) faddr,
+   return jhash_3words((__force __u32) laddr,
+             (__force __u32) faddr,
              ((__u32) lport) << 16 | (__force __u32)fport,
              inet_ehash_secret);
 }


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.