summaryrefslogtreecommitdiffstats
path: root/net/ipv4/raw.c
diff options
context:
space:
mode:
authorAlexey Dobriyan2006-06-06 06:06:41 +0200
committerDavid S. Miller2006-06-18 06:29:39 +0200
commit6d7416535097ed0943bdae8e69c14ba43061cab1 (patch)
treef71792b9ac32edd8016900067b55dff8f3941cf3 /net/ipv4/raw.c
parent[IPV4] igmp: Fixup struct ip_mc_list::multiaddr type (diff)
downloadkernel-qcow2-linux-6d7416535097ed0943bdae8e69c14ba43061cab1.tar.gz
kernel-qcow2-linux-6d7416535097ed0943bdae8e69c14ba43061cab1.tar.xz
kernel-qcow2-linux-6d7416535097ed0943bdae8e69c14ba43061cab1.zip
[IPV4]: Right prototype of __raw_v4_lookup()
All users pass 32-bit values as addresses and internally they're compared with 32-bit entities. So, change "laddr" and "raddr" types to __be32. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/raw.c')
-rw-r--r--net/ipv4/raw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c
index fc2562415555..bd221ec3f81e 100644
--- a/net/ipv4/raw.c
+++ b/net/ipv4/raw.c
@@ -103,7 +103,7 @@ static void raw_v4_unhash(struct sock *sk)
}
struct sock *__raw_v4_lookup(struct sock *sk, unsigned short num,
- unsigned long raddr, unsigned long laddr,
+ __be32 raddr, __be32 laddr,
int dif)
{
struct hlist_node *node;