net: Add documentation for netdev features handling
[deliverable/linux.git] / include / net / arp.h
CommitLineData
1da177e4
LT
1/* linux/net/inet/arp.h */
2#ifndef _ARP_H
3#define _ARP_H
4
5#include <linux/if_arp.h>
6#include <net/neighbour.h>
7
1da177e4
LT
8
9extern struct neigh_table arp_tbl;
10
f610b74b
DM
11static 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
1da177e4 18extern void arp_init(void);
1da177e4 19extern int arp_find(unsigned char *haddr, struct sk_buff *skb);
32e569b7 20extern int arp_ioctl(struct net *net, unsigned int cmd, void __user *arg);
ed9bad06
AV
21extern void arp_send(int type, int ptype, __be32 dest_ip,
22 struct net_device *dev, __be32 src_ip,
abfdf1c4
JE
23 const unsigned char *dest_hw,
24 const unsigned char *src_hw, const unsigned char *th);
1da177e4 25extern int arp_bind_neighbour(struct dst_entry *dst);
714e85be 26extern int arp_mc_map(__be32 addr, u8 *haddr, struct net_device *dev, int dir);
1da177e4
LT
27extern void arp_ifdown(struct net_device *dev);
28
ed9bad06
AV
29extern struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip,
30 struct net_device *dev, __be32 src_ip,
abfdf1c4
JE
31 const unsigned char *dest_hw,
32 const unsigned char *src_hw,
33 const unsigned char *target_hw);
1da177e4 34extern void arp_xmit(struct sk_buff *skb);
545ecdc3 35int arp_invalidate(struct net_device *dev, __be32 ip);
1da177e4 36
1da177e4 37#endif /* _ARP_H */
This page took 0.552684 seconds and 5 git commands to generate.