[IPV4]: Right prototype of __raw_v4_lookup()
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 6 Jun 2006 04:06:41 +0000 (21:06 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 18 Jun 2006 04:29:39 +0000 (21:29 -0700)
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>
include/net/raw.h
net/ipv4/raw.c

index e67b28a0248c3ce5c8c831634a475ae9017eeafc..d83571fe4c691f02a4ba72e076b103ae17fd60a5 100644 (file)
@@ -36,7 +36,7 @@ extern rwlock_t raw_v4_lock;
 
 
 extern struct sock *__raw_v4_lookup(struct sock *sk, unsigned short num,
-                                   unsigned long raddr, unsigned long laddr,
+                                   __be32 raddr, __be32 laddr,
                                    int dif);
 
 extern int raw_v4_input(struct sk_buff *skb, struct iphdr *iph, int hash);
index fc2562415555f255f89a538298e079a467708e41..bd221ec3f81eb668390d9e811712c8bc3da6fdfd 100644 (file)
@@ -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;