diff options
author | Noriaki TAKAMIYA <takamiya@po.ntts.co.jp> | 2006-08-23 21:18:55 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 18:06:42 -0400 |
commit | 060f02a3bdd4d9ba8aa3c48e9b470672b1f3a585 (patch) | |
tree | 0eb60cf50ad70ceb856c82c32124470f6bce2d86 /include | |
parent | 1b5c229987dc4d0c92a38fac0cde2aeec08cd775 (diff) |
[XFRM] STATE: Introduce care-of address.
Care-of address is carried by state as a transformation option like
IPsec encryption/authentication algorithm.
Based on MIPL2 kernel patch.
Signed-off-by: Noriaki TAKAMIYA <takamiya@po.ntts.co.jp>
Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org>
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/xfrm.h | 1 | ||||
-rw-r--r-- | include/net/xfrm.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/xfrm.h b/include/linux/xfrm.h index a7c9e4cfb15b..b53f799189af 100644 --- a/include/linux/xfrm.h +++ b/include/linux/xfrm.h | |||
@@ -235,6 +235,7 @@ enum xfrm_attr_type_t { | |||
235 | XFRMA_REPLAY_THRESH, | 235 | XFRMA_REPLAY_THRESH, |
236 | XFRMA_ETIMER_THRESH, | 236 | XFRMA_ETIMER_THRESH, |
237 | XFRMA_SRCADDR, /* xfrm_address_t */ | 237 | XFRMA_SRCADDR, /* xfrm_address_t */ |
238 | XFRMA_COADDR, /* xfrm_address_t */ | ||
238 | __XFRMA_MAX | 239 | __XFRMA_MAX |
239 | 240 | ||
240 | #define XFRMA_MAX (__XFRMA_MAX - 1) | 241 | #define XFRMA_MAX (__XFRMA_MAX - 1) |
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index aa93cc1f6299..872a2a4022b2 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
@@ -134,6 +134,9 @@ struct xfrm_state | |||
134 | /* Data for encapsulator */ | 134 | /* Data for encapsulator */ |
135 | struct xfrm_encap_tmpl *encap; | 135 | struct xfrm_encap_tmpl *encap; |
136 | 136 | ||
137 | /* Data for care-of address */ | ||
138 | xfrm_address_t *coaddr; | ||
139 | |||
137 | /* IPComp needs an IPIP tunnel for handling uncompressed packets */ | 140 | /* IPComp needs an IPIP tunnel for handling uncompressed packets */ |
138 | struct xfrm_state *tunnel; | 141 | struct xfrm_state *tunnel; |
139 | 142 | ||