summaryrefslogtreecommitdiff
path: root/net/ipv6/xfrm6_state.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-08-24 00:42:45 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 15:08:39 -0700
commitedcd582152090bfb0ccb4ad444c151798a73eda8 (patch)
tree9d6051e71c5c22c50315d6b2c740170002469288 /net/ipv6/xfrm6_state.c
parent2770834c9f44afd1bfa13914c7285470775af657 (diff)
[XFRM]: Pull xfrm_state_by{spi,src} hash table knowledge out of afinfo.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/xfrm6_state.c')
-rw-r--r--net/ipv6/xfrm6_state.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/net/ipv6/xfrm6_state.c b/net/ipv6/xfrm6_state.c
index 40fcaab7e028..d88cd92c864e 100644
--- a/net/ipv6/xfrm6_state.c
+++ b/net/ipv6/xfrm6_state.c
@@ -63,44 +63,6 @@ __xfrm6_init_tempsel(struct xfrm_state *x, struct flowi *fl,
x->props.family = AF_INET6;
}
-static struct xfrm_state *
-__xfrm6_state_lookup_byaddr(xfrm_address_t *daddr, xfrm_address_t *saddr,
- u8 proto)
-{
- struct xfrm_state *x = NULL;
- unsigned h;
-
- h = __xfrm6_src_hash(saddr);
- list_for_each_entry(x, xfrm6_state_afinfo.state_bysrc+h, bysrc) {
- if (x->props.family == AF_INET6 &&
- ipv6_addr_equal((struct in6_addr *)daddr, (struct in6_addr *)x->id.daddr.a6) &&
- ipv6_addr_equal((struct in6_addr *)saddr, (struct in6_addr *)x->props.saddr.a6) &&
- proto == x->id.proto) {
- xfrm_state_hold(x);
- return x;
- }
- }
- return NULL;
-}
-
-static struct xfrm_state *
-__xfrm6_state_lookup(xfrm_address_t *daddr, u32 spi, u8 proto)
-{
- unsigned h = __xfrm6_spi_hash(daddr, spi, proto);
- struct xfrm_state *x;
-
- list_for_each_entry(x, xfrm6_state_afinfo.state_byspi+h, byspi) {
- if (x->props.family == AF_INET6 &&
- spi == x->id.spi &&
- ipv6_addr_equal((struct in6_addr *)daddr, (struct in6_addr *)x->id.daddr.a6) &&
- proto == x->id.proto) {
- xfrm_state_hold(x);
- return x;
- }
- }
- return NULL;
-}
-
static int
__xfrm6_state_sort(struct xfrm_state **dst, struct xfrm_state **src, int n)
{
@@ -223,8 +185,6 @@ __xfrm6_tmpl_sort(struct xfrm_tmpl **dst, struct xfrm_tmpl **src, int n)
static struct xfrm_state_afinfo xfrm6_state_afinfo = {
.family = AF_INET6,
.init_tempsel = __xfrm6_init_tempsel,
- .state_lookup = __xfrm6_state_lookup,
- .state_lookup_byaddr = __xfrm6_state_lookup_byaddr,
.tmpl_sort = __xfrm6_tmpl_sort,
.state_sort = __xfrm6_state_sort,
};
ass='sub'>Unnamed repository; edit this file to name it for gitweb.root
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2024-05-07update translations for 7.6.7 rc2mimo-7-6-branch-pointlibreoffice-7-6distro/mimo/mimo-7-6Christian Lohmaier417-14795/+13148
2024-04-22update translations for 7.6.7 rc1Christian Lohmaier348-6116/+5748
2024-03-21update translations for 7.6.6 rc3Christian Lohmaier35-213/+204
2024-03-19update translations for 7.6.6 rc2Christian Lohmaier53-251/+249
2024-03-18bump copyright year for sl translationChristian Lohmaier2-4/+4
2024-03-18update translations for 7-6Christian Lohmaier931-21480/+20814
2024-03-05update translations for 7.6.6 rc1Christian Lohmaier295-5547/+5404
2024-02-15update translations for 7.6.5 rc2Christian Lohmaier285-5982/+5640
2024-02-01update translations for 7.6.5 rc1Christian Lohmaier37-483/+473
2024-01-30update translations for 7.6.5 rc1Christian Lohmaier879-27048/+26033
2023-11-30update translations for 7.6.4 rc1Xisco Fauli152-2777/+2756
2023-11-23update translations for 7-6Xisco Fauli42-818/+811
2023-11-21update translations for 7-6Xisco Fauli70-1462/+1451
2023-11-16update translations for 7.6.3 rc2Christian Lohmaier278-4389/+4308
2023-11-02update translations for 7.6.3 rc1Christian Lohmaier355-8735/+9208
2023-10-02update translations for 7-6Christian Lohmaier130-2279/+2254
2023-09-22update translations for 7.6.2 rc1Christian Lohmaier25-624/+594
2023-09-19update translations for 7.6.2 rc1Christian Lohmaier92-1251/+1232
2023-09-18Updated Slovenian translationMartin Srebotnjak54-286/+293
2023-09-16Updated Slovenian translationMartin Srebotnjak54-578/+578
2023-09-13update translations for 7-6Christian Lohmaier60-2531/+2463
2023-09-06update translations for 7.6.1 rc2Christian Lohmaier98-3677/+3513
2023-08-28update translations for master/7.6Christian Lohmaier112-2646/+2674
2023-08-23update translations for master/7.6.1 rc1Xisco Fauli62-2393/+2289
2023-08-16update translations for master/7.6.1 rc1Xisco Fauli290-13739/+13680
2023-08-08update translations for 7.6.0 rc3Christian Lohmaier38-1025/+944
2023-08-07update translations for 7.6.0 rc3Christian Lohmaier233-8251/+7856
2023-07-26update translations for 7.6.0 rc2Christian Lohmaier879-28115/+27400
2023-07-08Updated Slovenian translationMartin Srebotnjak17-2275/+2601
2023-07-07update translations for master/7.6.0 rc1Christian Lohmaier1748-357269/+430134
2023-07-01Updated Slovenian translationMartin Srebotnjak30-2002/+3514
2023-06-19update translations for master/7.6Christian Lohmaier940-10242/+20911
2023-06-12update translations for 7.6/masterChristian Lohmaier777-10559/+17593
2023-06-07Branch libreoffice-7-6Christian Lohmaier0-0/+0
2023-06-07update translations for master/7.6.0 beta1libreoffice-7-6-branch-pointChristian Lohmaier1234-124630/+170202
2023-06-01Updated Slovenian translationMartin Srebotnjak38-3954/+5251
2023-05-31update translations for master/7.6Christian Lohmaier1747-91792/+170634
2023-05-22update translations for master/7.6Christian Lohmaier722-151571/+156642
2023-05-17update translations for masterChristian Lohmaier1295-55089/+71497
2023-05-14Updated Slovenian translationMartin Srebotnjak67-9207/+15986
2023-05-11update tranlsations for master/7.6.0 alpha1Christian Lohmaier399-27908/+29243
2023-05-10update translations for masterChristian Lohmaier2164-289516/+301752
2023-05-03update translations for masterChristian Lohmaier1350-43395/+56073
2023-04-27update translations for masterChristian Lohmaier