[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>
This commit is contained in:
parent
338fcf9886
commit
6d74165350
|
@ -36,7 +36,7 @@ extern rwlock_t raw_v4_lock;
|
||||||
|
|
||||||
|
|
||||||
extern struct sock *__raw_v4_lookup(struct sock *sk, unsigned short num,
|
extern struct sock *__raw_v4_lookup(struct sock *sk, unsigned short num,
|
||||||
unsigned long raddr, unsigned long laddr,
|
__be32 raddr, __be32 laddr,
|
||||||
int dif);
|
int dif);
|
||||||
|
|
||||||
extern int raw_v4_input(struct sk_buff *skb, struct iphdr *iph, int hash);
|
extern int raw_v4_input(struct sk_buff *skb, struct iphdr *iph, int hash);
|
||||||
|
|
|
@ -103,7 +103,7 @@ static void raw_v4_unhash(struct sock *sk)
|
||||||
}
|
}
|
||||||
|
|
||||||
struct sock *__raw_v4_lookup(struct sock *sk, unsigned short num,
|
struct sock *__raw_v4_lookup(struct sock *sk, unsigned short num,
|
||||||
unsigned long raddr, unsigned long laddr,
|
__be32 raddr, __be32 laddr,
|
||||||
int dif)
|
int dif)
|
||||||
{
|
{
|
||||||
struct hlist_node *node;
|
struct hlist_node *node;
|
||||||
|
|
Reference in New Issue