Lines Matching refs:secasvar
169 static LIST_HEAD(_spihash, secasvar) spihash[SPIHASHSIZE];
405 static struct secasvar *key_do_allocsa_policy(struct secashead *, u_int, u_int16_t);
406 static int key_do_get_translated_port(struct secashead *, struct secasvar *, u_int);
434 static struct secasvar *key_newsav(struct mbuf *,
438 static struct secasvar *key_checkspidup(struct secasindex *, u_int32_t);
439 static void key_setspi __P((struct secasvar *, u_int32_t));
440 static struct secasvar *key_getsavbyspi(struct secashead *, u_int32_t);
441 static int key_setsaval(struct secasvar *, struct mbuf *,
443 static int key_mature(struct secasvar *);
444 static struct mbuf *key_setdumpsa(struct secasvar *, u_int8_t,
448 static struct mbuf *key_setsadbsa(struct secasvar *);
457 static void key_update_natt_keepalive_timestamp(struct secasvar *, struct secasvar *);
508 static int key_expire(struct secasvar *);
524 int ipsec_send_natt_keepalive(struct secasvar *sav);
525 bool ipsec_fill_offload_frame(ifnet_t ifp, struct secasvar *sav, struct ifnet_keepalive_offload_fra…
530 key_get_flowid(struct secasvar *sav) in key_get_flowid()
578 key_release_flowid(struct secasvar *sav) in key_release_flowid()
830 struct secasvar *
836 struct secasvar *sav; in key_alloc_outbound_sav_for_interface()
926 struct secasvar **sav) in key_checkrequest()
995 struct secasvar *
1000 struct secasvar *sav; in key_allocsa_policy()
1056 key_send_delete(struct secasvar *sav) in key_send_delete()
1133 static struct secasvar *
1139 struct secasvar *sav, *nextsav, *candidate, *natt_candidate, *no_natt_candidate, *d; in key_do_allocsa_policy()
1273 struct secasvar *
1285 struct secasvar *
1294 struct secasvar *sav, *match; in key_allocsa_extended()
1556 struct secasvar *nextsav = NULL; in key_checksa_present()
1559 for (struct secasvar *sav = LIST_FIRST(&sah->savtree[state]); sav != NULL; sav = nextsav) { in key_checksa_present()
1590 struct secasvar *outsav) in key_natt_get_translated_port()
1649 struct secasvar *outsav, in key_do_get_translated_port()
1652 struct secasvar *currsav, *nextsav, *candidate; in key_do_get_translated_port()
1750 struct secasvar *sav, in key_freesav()
3864 struct secasvar *sav, *nextsav; in key_delsah()
3884 for (sav = (struct secasvar *)LIST_FIRST(&sah->savtree[state]); in key_delsah()
3938 static struct secasvar *
3946 struct secasvar *newsav; in key_newsav()
3956 newsav = kalloc_type(struct secasvar, Z_NOWAIT_ZERO); in key_newsav()
3959 newsav = kalloc_type(struct secasvar, Z_WAITOK_ZERO_NOFAIL); in key_newsav()
4053 secasvar, chain); in key_newsav()
4061 key_migratesav(struct secasvar *sav, in key_migratesav()
4074 LIST_INSERT_TAIL(&newsah->savtree[SADB_SASTATE_MATURE], sav, secasvar, chain); in key_migratesav()
4079 key_reset_sav(struct secasvar *sav) in key_reset_sav()
4139 struct secasvar *sav) in key_delsav()
4163 kfree_type(struct secasvar, sav); in key_delsav()
4228 static struct secasvar *
4233 struct secasvar *sav; in key_checkspidup()
4265 struct secasvar *sav, in key_setspi()
4283 static struct secasvar *
4288 struct secasvar *sav, *match; in key_getsavbyspi()
4324 struct secasvar *sav, in key_setsaval()
4598 struct secasvar *sav) in key_mature()
4756 struct secasvar *sav, in key_setdumpsa()
4982 struct secasvar *sav) in key_setsadbsa()
5863 struct secasvar **savexbuf = NULL, **savexptr = NULL; in key_timehandler()
5864 struct secasvar **savkabuf = NULL, **savkaptr = NULL; in key_timehandler()
5888 savexbuf = kalloc_type(struct secasvar *, savbufcount, Z_WAITOK); in key_timehandler()
5892 savkabuf = kalloc_type(struct secasvar *, savbufcount, Z_WAITOK); in key_timehandler()
5941 struct secasvar *sav, *nextsav; in key_timehandler()
6235 struct secasvar **savkaptr_sav = savkaptr; in key_timehandler()
6241 struct secasvar **savkaptr_update = savkaptr_sav; in key_timehandler()
6269 kfree_type(struct secasvar *, savbufcount, savkabuf); in key_timehandler()
6275 kfree_type(struct secasvar *, savbufcount, savexbuf); in key_timehandler()
6455 struct secasvar *newsav; in key_getspi()
6787 struct secasvar *sav = NULL; in key_update()
6979 struct secasvar *sav = NULL; in key_migrate()
7172 struct secasvar *newsav = NULL; in key_add()
7401 struct secasvar *sav = NULL; in key_delete()
7531 struct secasvar *sav, *nextsav; in key_delete_all()
7636 struct secasvar *sav = NULL; in key_get()
7740 struct secasvar *sav = NULL; in key_getsastatbyspi_one()
8627 struct secasvar *sav, *nextsav; in key_delete_all_for_socket()
8698 struct secasvar *sav) in key_expire()
8839 struct secasvar *sav, *nextsav; in key_flush()
8919 struct secasvar *sav;
8930 struct secasvar *sav; in key_dump()
9762 struct secasvar *sav, in key_checktunnelsanity()
9780 struct secasvar *sav, in key_sa_recordxfer()
9854 struct secasvar *sav, in key_sa_chgstate()
9877 struct secasvar *sav) in key_sa_stir_iv()
10117 key_update_natt_keepalive_timestamp(struct secasvar *sav_sent, in key_update_natt_keepalive_timestamp()
10118 struct secasvar *sav_update) in key_update_natt_keepalive_timestamp()
10256 struct secasvar *sav, *nextsav; in key_delsp_for_ipsec_if()
10318 struct secasvar *sav = NULL; in key_fill_offload_frames_for_savs()