diff options
Diffstat (limited to 'include/net/inetpeer.h')
-rw-r--r-- | include/net/inetpeer.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/net/inetpeer.h b/include/net/inetpeer.h index fe239bfe5f7f..d7e60792d76e 100644 --- a/include/net/inetpeer.h +++ b/include/net/inetpeer.h | |||
@@ -13,10 +13,18 @@ | |||
13 | #include <linux/spinlock.h> | 13 | #include <linux/spinlock.h> |
14 | #include <asm/atomic.h> | 14 | #include <asm/atomic.h> |
15 | 15 | ||
16 | typedef struct { | ||
17 | union { | ||
18 | __be32 a4; | ||
19 | __be32 a6[4]; | ||
20 | }; | ||
21 | __u16 family; | ||
22 | } inet_peer_address_t; | ||
23 | |||
16 | struct inet_peer { | 24 | struct inet_peer { |
17 | /* group together avl_left,avl_right,v4daddr to speedup lookups */ | 25 | /* group together avl_left,avl_right,v4daddr to speedup lookups */ |
18 | struct inet_peer __rcu *avl_left, *avl_right; | 26 | struct inet_peer __rcu *avl_left, *avl_right; |
19 | __be32 v4daddr; /* peer's address */ | 27 | inet_peer_address_t daddr; |
20 | __u32 avl_height; | 28 | __u32 avl_height; |
21 | struct list_head unused; | 29 | struct list_head unused; |
22 | __u32 dtime; /* the time of last use of not | 30 | __u32 dtime; /* the time of last use of not |