summaryrefslogtreecommitdiffstats
path: root/include/net/inetpeer.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-11-30 11:53:55 -0800
committerDavid S. Miller <davem@davemloft.net>2010-11-30 11:53:55 -0800
commit582a72da9a41be9227dc931d728ae2906880a589 (patch)
tree0c1943d6c5eabdbfef6560ac49db322d4becf43d /include/net/inetpeer.h
parent98158f5a853cafd33b254ae0eacc0dd69f90b93b (diff)
downloadlinux-582a72da9a41be9227dc931d728ae2906880a589.tar.bz2
inetpeer: Introduce inet_peer_address_t.
Currently only the v4 aspect is used, but this will change. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inetpeer.h')
-rw-r--r--include/net/inetpeer.h10
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 @@
#include <linux/spinlock.h>
#include <asm/atomic.h>
+typedef struct {
+ union {
+ __be32 a4;
+ __be32 a6[4];
+ };
+ __u16 family;
+} inet_peer_address_t;
+
struct inet_peer {
/* group together avl_left,avl_right,v4daddr to speedup lookups */
struct inet_peer __rcu *avl_left, *avl_right;
- __be32 v4daddr; /* peer's address */
+ inet_peer_address_t daddr;
__u32 avl_height;
struct list_head unused;
__u32 dtime; /* the time of last use of not