diff options
Diffstat (limited to 'include/net/neighbour.h')
-rw-r--r-- | include/net/neighbour.h | 42 |
1 files changed, 4 insertions, 38 deletions
diff --git a/include/net/neighbour.h b/include/net/neighbour.h index 4901ee446879..c8aacbd2e333 100644 --- a/include/net/neighbour.h +++ b/include/net/neighbour.h | |||
@@ -1,6 +1,8 @@ | |||
1 | #ifndef _NET_NEIGHBOUR_H | 1 | #ifndef _NET_NEIGHBOUR_H |
2 | #define _NET_NEIGHBOUR_H | 2 | #define _NET_NEIGHBOUR_H |
3 | 3 | ||
4 | #include <linux/neighbour.h> | ||
5 | |||
4 | /* | 6 | /* |
5 | * Generic neighbour manipulation | 7 | * Generic neighbour manipulation |
6 | * | 8 | * |
@@ -14,40 +16,6 @@ | |||
14 | * - Add neighbour cache statistics like rtstat | 16 | * - Add neighbour cache statistics like rtstat |
15 | */ | 17 | */ |
16 | 18 | ||
17 | /* The following flags & states are exported to user space, | ||
18 | so that they should be moved to include/linux/ directory. | ||
19 | */ | ||
20 | |||
21 | /* | ||
22 | * Neighbor Cache Entry Flags | ||
23 | */ | ||
24 | |||
25 | #define NTF_PROXY 0x08 /* == ATF_PUBL */ | ||
26 | #define NTF_ROUTER 0x80 | ||
27 | |||
28 | /* | ||
29 | * Neighbor Cache Entry States. | ||
30 | */ | ||
31 | |||
32 | #define NUD_INCOMPLETE 0x01 | ||
33 | #define NUD_REACHABLE 0x02 | ||
34 | #define NUD_STALE 0x04 | ||
35 | #define NUD_DELAY 0x08 | ||
36 | #define NUD_PROBE 0x10 | ||
37 | #define NUD_FAILED 0x20 | ||
38 | |||
39 | /* Dummy states */ | ||
40 | #define NUD_NOARP 0x40 | ||
41 | #define NUD_PERMANENT 0x80 | ||
42 | #define NUD_NONE 0x00 | ||
43 | |||
44 | /* NUD_NOARP & NUD_PERMANENT are pseudostates, they never change | ||
45 | and make no address resolution or NUD. | ||
46 | NUD_PERMANENT is also cannot be deleted by garbage collectors. | ||
47 | */ | ||
48 | |||
49 | #ifdef __KERNEL__ | ||
50 | |||
51 | #include <asm/atomic.h> | 19 | #include <asm/atomic.h> |
52 | #include <linux/netdevice.h> | 20 | #include <linux/netdevice.h> |
53 | #include <linux/skbuff.h> | 21 | #include <linux/skbuff.h> |
@@ -133,7 +101,7 @@ struct neighbour | |||
133 | __u8 dead; | 101 | __u8 dead; |
134 | atomic_t probes; | 102 | atomic_t probes; |
135 | rwlock_t lock; | 103 | rwlock_t lock; |
136 | unsigned char ha[(MAX_ADDR_LEN+sizeof(unsigned long)-1)&~(sizeof(unsigned long)-1)]; | 104 | unsigned char ha[ALIGN(MAX_ADDR_LEN, sizeof(unsigned long))]; |
137 | struct hh_cache *hh; | 105 | struct hh_cache *hh; |
138 | atomic_t refcnt; | 106 | atomic_t refcnt; |
139 | int (*output)(struct sk_buff *skb); | 107 | int (*output)(struct sk_buff *skb); |
@@ -158,6 +126,7 @@ struct pneigh_entry | |||
158 | { | 126 | { |
159 | struct pneigh_entry *next; | 127 | struct pneigh_entry *next; |
160 | struct net_device *dev; | 128 | struct net_device *dev; |
129 | u8 flags; | ||
161 | u8 key[0]; | 130 | u8 key[0]; |
162 | }; | 131 | }; |
163 | 132 | ||
@@ -374,6 +343,3 @@ struct neighbour_cb { | |||
374 | #define NEIGH_CB(skb) ((struct neighbour_cb *)(skb)->cb) | 343 | #define NEIGH_CB(skb) ((struct neighbour_cb *)(skb)->cb) |
375 | 344 | ||
376 | #endif | 345 | #endif |
377 | #endif | ||
378 | |||
379 | |||