diff options
Diffstat (limited to 'include/net/arp.h')
-rw-r--r-- | include/net/arp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/arp.h b/include/net/arp.h index 91f0568a04ef..723bde501c64 100644 --- a/include/net/arp.h +++ b/include/net/arp.h | |||
@@ -8,6 +8,13 @@ | |||
8 | 8 | ||
9 | extern struct neigh_table arp_tbl; | 9 | extern struct neigh_table arp_tbl; |
10 | 10 | ||
11 | static inline u32 arp_hashfn(u32 key, const struct net_device *dev, u32 hash_rnd) | ||
12 | { | ||
13 | u32 val = key ^ dev->ifindex; | ||
14 | |||
15 | return val * hash_rnd; | ||
16 | } | ||
17 | |||
11 | extern void arp_init(void); | 18 | extern void arp_init(void); |
12 | extern int arp_find(unsigned char *haddr, struct sk_buff *skb); | 19 | extern int arp_find(unsigned char *haddr, struct sk_buff *skb); |
13 | extern int arp_ioctl(struct net *net, unsigned int cmd, void __user *arg); | 20 | extern int arp_ioctl(struct net *net, unsigned int cmd, void __user *arg); |