diff options
author | Masahide NAKAMURA <nakam@linux-ipv6.org> | 2006-08-23 20:56:04 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 18:06:35 -0400 |
commit | eb2971b68a7d17a7d0fa2c7fc6fbc4bfe41cd694 (patch) | |
tree | 5f6e98ac376d0d2faa69e8a6644706a7312a1ff1 /net/ipv4/xfrm4_state.c | |
parent | 6c44e6b7ab500d7e3e3f406c83325671be51a752 (diff) |
[XFRM] STATE: Search by address using source address list.
This is a support to search transformation states by its addresses
by using source address list for Mobile IPv6 usage.
To use it from user-space, it is also added a message type for
source address as a xfrm state option.
Based on MIPL2 kernel patch.
Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org>
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/xfrm4_state.c')
-rw-r--r-- | net/ipv4/xfrm4_state.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/ipv4/xfrm4_state.c b/net/ipv4/xfrm4_state.c index c56b258fad73..616be131b4e3 100644 --- a/net/ipv4/xfrm4_state.c +++ b/net/ipv4/xfrm4_state.c | |||
@@ -80,6 +80,14 @@ __xfrm4_state_lookup(xfrm_address_t *daddr, u32 spi, u8 proto) | |||
80 | return NULL; | 80 | return NULL; |
81 | } | 81 | } |
82 | 82 | ||
83 | /* placeholder until ipv4's code is written */ | ||
84 | static struct xfrm_state * | ||
85 | __xfrm4_state_lookup_byaddr(xfrm_address_t *daddr, xfrm_address_t *saddr, | ||
86 | u8 proto) | ||
87 | { | ||
88 | return NULL; | ||
89 | } | ||
90 | |||
83 | static struct xfrm_state * | 91 | static struct xfrm_state * |
84 | __xfrm4_find_acq(u8 mode, u32 reqid, u8 proto, | 92 | __xfrm4_find_acq(u8 mode, u32 reqid, u8 proto, |
85 | xfrm_address_t *daddr, xfrm_address_t *saddr, | 93 | xfrm_address_t *daddr, xfrm_address_t *saddr, |
@@ -137,6 +145,7 @@ static struct xfrm_state_afinfo xfrm4_state_afinfo = { | |||
137 | .init_flags = xfrm4_init_flags, | 145 | .init_flags = xfrm4_init_flags, |
138 | .init_tempsel = __xfrm4_init_tempsel, | 146 | .init_tempsel = __xfrm4_init_tempsel, |
139 | .state_lookup = __xfrm4_state_lookup, | 147 | .state_lookup = __xfrm4_state_lookup, |
148 | .state_lookup_byaddr = __xfrm4_state_lookup_byaddr, | ||
140 | .find_acq = __xfrm4_find_acq, | 149 | .find_acq = __xfrm4_find_acq, |
141 | }; | 150 | }; |
142 | 151 | ||