Lines Matching refs:secasvar

170 static LIST_HEAD(_spihash, secasvar) spihash[SPIHASHSIZE];
404 static struct secasvar *key_do_allocsa_policy(struct secashead *, u_int, u_int16_t);
405 static int key_do_get_translated_port(struct secashead *, struct secasvar *, u_int);
433 static struct secasvar *key_newsav(struct mbuf *,
437 static struct secasvar *key_checkspidup(struct secasindex *, u_int32_t);
438 static void key_setspi __P((struct secasvar *, u_int32_t));
439 static struct secasvar *key_getsavbyspi(struct secashead *, u_int32_t);
440 static int key_setsaval(struct secasvar *, struct mbuf *,
442 static int key_mature(struct secasvar *);
443 static struct mbuf *key_setdumpsa(struct secasvar *, u_int8_t,
447 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…
569 key_get_flowid(struct secasvar *sav) in key_get_flowid()
617 key_release_flowid(struct secasvar *sav) in key_release_flowid()
865 struct secasvar *
871 struct secasvar *sav; in key_alloc_outbound_sav_for_interface()
961 struct secasvar **sav) in key_checkrequest()
1030 struct secasvar *
1035 struct secasvar *sav; in key_allocsa_policy()
1091 key_send_delete(struct secasvar *sav) in key_send_delete()
1168 static struct secasvar *
1174 struct secasvar *sav, *nextsav, *candidate, *natt_candidate, *no_natt_candidate, *d; in key_do_allocsa_policy()
1308 struct secasvar *
1320 struct secasvar *
1329 struct secasvar *sav, *match; in key_allocsa_extended()
1591 struct secasvar *nextsav = NULL; in key_checksa_present()
1594 for (struct secasvar *sav = LIST_FIRST(&sah->savtree[state]); sav != NULL; sav = nextsav) { in key_checksa_present()
1625 struct secasvar *outsav) in key_natt_get_translated_port()
1684 struct secasvar *outsav, in key_do_get_translated_port()
1687 struct secasvar *currsav, *nextsav, *candidate; in key_do_get_translated_port()
1785 struct secasvar *sav, in key_freesav()
3925 struct secasvar *sav, *nextsav; in key_delsah()
3945 for (sav = (struct secasvar *)LIST_FIRST(&sah->savtree[state]); in key_delsah()
3999 static struct secasvar *
4007 struct secasvar *newsav; in key_newsav()
4017 newsav = kalloc_type(struct secasvar, Z_NOWAIT_ZERO); in key_newsav()
4020 newsav = kalloc_type(struct secasvar, Z_WAITOK_ZERO_NOFAIL); in key_newsav()
4110 secasvar, chain); in key_newsav()
4118 key_migratesav(struct secasvar *sav, in key_migratesav()
4131 LIST_INSERT_TAIL(&newsah->savtree[SADB_SASTATE_MATURE], sav, secasvar, chain); in key_migratesav()
4136 key_reset_sav(struct secasvar *sav) in key_reset_sav()
4196 struct secasvar *sav) in key_delsav()
4220 kfree_type(struct secasvar, sav); in key_delsav()
4285 static struct secasvar *
4290 struct secasvar *sav; in key_checkspidup()
4322 struct secasvar *sav, in key_setspi()
4340 static struct secasvar *
4345 struct secasvar *sav, *match; in key_getsavbyspi()
4381 struct secasvar *sav, in key_setsaval()
4658 struct secasvar *sav) in key_mature()
4816 struct secasvar *sav, in key_setdumpsa()
5044 struct secasvar *sav) in key_setsadbsa()
5954 struct secasvar **savexbuf = NULL, **savexptr = NULL; in key_timehandler()
5955 struct secasvar **savkabuf = NULL, **savkaptr = NULL; in key_timehandler()
5978 savexbuf = kalloc_type(struct secasvar *, savbufcount, Z_WAITOK); in key_timehandler()
5982 savkabuf = kalloc_type(struct secasvar *, savbufcount, Z_WAITOK); in key_timehandler()
6031 struct secasvar *sav, *nextsav; in key_timehandler()
6335 struct secasvar **savkaptr_sav = savkaptr; in key_timehandler()
6341 struct secasvar **savkaptr_update = savkaptr_sav; in key_timehandler()
6369 kfree_type(struct secasvar *, savbufcount, savkabuf); in key_timehandler()
6375 kfree_type(struct secasvar *, savbufcount, savexbuf); in key_timehandler()
6555 struct secasvar *newsav; in key_getspi()
6885 struct secasvar *sav = NULL; in key_update()
7077 struct secasvar *sav = NULL; in key_migrate()
7270 struct secasvar *newsav = NULL; in key_add()
7499 struct secasvar *sav = NULL; in key_delete()
7629 struct secasvar *sav, *nextsav; in key_delete_all()
7734 struct secasvar *sav = NULL; in key_get()
7838 struct secasvar *sav = NULL; in key_getsastatbyspi_one()
8724 struct secasvar *sav, *nextsav; in key_delete_all_for_socket()
8795 struct secasvar *sav) in key_expire()
8936 struct secasvar *sav, *nextsav; in key_flush()
9016 struct secasvar *sav;
9027 struct secasvar *sav; in key_dump()
9859 struct secasvar *sav, in key_checktunnelsanity()
9877 struct secasvar *sav, in key_sa_recordxfer()
9944 struct secasvar *sav, in key_sa_chgstate()
9967 struct secasvar *sav) in key_sa_stir_iv()
10207 key_update_natt_keepalive_timestamp(struct secasvar *sav_sent, in key_update_natt_keepalive_timestamp()
10208 struct secasvar *sav_update) in key_update_natt_keepalive_timestamp()
10346 struct secasvar *sav, *nextsav; in key_delsp_for_ipsec_if()
10408 struct secasvar *sav = NULL; in key_fill_offload_frames_for_savs()