Lines Matching refs:secasvar

172 static LIST_HEAD(_spihash, secasvar) spihash[SPIHASHSIZE];
417 static struct secasvar *key_do_allocsa_policy(struct secashead *, u_int, u_int16_t);
418 static int key_do_get_translated_port(struct secashead *, struct secasvar *, u_int);
446 static struct secasvar *key_newsav(struct mbuf *,
450 static struct secasvar *key_checkspidup(struct secasindex *, u_int32_t);
451 static void key_setspi __P((struct secasvar *, u_int32_t));
452 static struct secasvar *key_getsavbyspi(struct secashead *, u_int32_t);
453 static int key_setsaval(struct secasvar *, struct mbuf *,
455 static int key_mature(struct secasvar *);
456 static struct mbuf *key_setdumpsa(struct secasvar *, u_int8_t,
460 static struct mbuf *key_setsadbsa(struct secasvar *);
471 static void key_update_natt_keepalive_timestamp(struct secasvar *, struct secasvar *);
523 static int key_expire(struct secasvar *);
539 int ipsec_send_natt_keepalive(struct secasvar *sav);
540 bool ipsec_fill_offload_frame(ifnet_t ifp, struct secasvar *sav, struct ifnet_keepalive_offload_fra…
584 key_get_flowid(struct secasvar *sav) in key_get_flowid()
632 key_release_flowid(struct secasvar *sav) in key_release_flowid()
880 struct secasvar *
886 struct secasvar *sav; in key_alloc_outbound_sav_for_interface()
976 struct secasvar **sav) in key_checkrequest()
1045 struct secasvar *
1050 struct secasvar *sav; in key_allocsa_policy()
1106 key_send_delete(struct secasvar *sav) in key_send_delete()
1183 static struct secasvar *
1189 struct secasvar *sav, *nextsav, *candidate, *natt_candidate, *no_natt_candidate, *d; in key_do_allocsa_policy()
1323 struct secasvar *
1330 struct secasvar *sav, *match; in key_allocsa()
1487 struct secasvar *nextsav = NULL; in key_checksa_present()
1493 for (struct secasvar *sav = LIST_FIRST(&sah->savtree[state]); sav != NULL; sav = nextsav) { in key_checksa_present()
1524 struct secasvar *outsav) in key_natt_get_translated_port()
1583 struct secasvar *outsav, in key_do_get_translated_port()
1586 struct secasvar *currsav, *nextsav, *candidate; in key_do_get_translated_port()
1684 struct secasvar *sav, in key_freesav()
3840 struct secasvar *sav, *nextsav; in key_delsah()
3860 for (sav = (struct secasvar *)LIST_FIRST(&sah->savtree[state]); in key_delsah()
3914 static struct secasvar *
3922 struct secasvar *newsav; in key_newsav()
3932 newsav = kalloc_type(struct secasvar, Z_NOWAIT_ZERO); in key_newsav()
3935 newsav = kalloc_type(struct secasvar, Z_WAITOK_ZERO_NOFAIL); in key_newsav()
4025 secasvar, chain); in key_newsav()
4033 key_migratesav(struct secasvar *sav, in key_migratesav()
4046 LIST_INSERT_TAIL(&newsah->savtree[sav->state], sav, secasvar, chain); in key_migratesav()
4051 key_reset_sav(struct secasvar *sav) in key_reset_sav()
4112 struct secasvar *sav) in key_delsav()
4136 kfree_type(struct secasvar, sav); in key_delsav()
4201 static struct secasvar *
4206 struct secasvar *sav; in key_checkspidup()
4238 struct secasvar *sav, in key_setspi()
4256 static struct secasvar *
4261 struct secasvar *sav, *match; in key_getsavbyspi()
4297 struct secasvar *sav, in key_setsaval()
4588 struct secasvar *sav) in key_mature()
4746 struct secasvar *sav, in key_setdumpsa()
4975 struct secasvar *sav) in key_setsadbsa()
5928 struct secasvar **savexbuf = NULL, **savexptr = NULL; in key_timehandler()
5929 struct secasvar **savkabuf = NULL, **savkaptr = NULL; in key_timehandler()
5952 savexbuf = kalloc_type(struct secasvar *, savbufcount, Z_WAITOK); in key_timehandler()
5956 savkabuf = kalloc_type(struct secasvar *, savbufcount, Z_WAITOK); in key_timehandler()
6005 struct secasvar *sav, *nextsav; in key_timehandler()
6309 struct secasvar **savkaptr_sav = savkaptr; in key_timehandler()
6315 struct secasvar **savkaptr_update = savkaptr_sav; in key_timehandler()
6343 kfree_type(struct secasvar *, savbufcount, savkabuf); in key_timehandler()
6349 kfree_type(struct secasvar *, savbufcount, savexbuf); in key_timehandler()
6530 struct secasvar *newsav; in key_getspi()
6856 struct secasvar *sav = NULL; in key_update()
7050 struct secasvar *sav = NULL; in key_migrate()
7245 struct secasvar *newsav = NULL; in key_add()
7475 struct secasvar *sav = NULL; in key_delete()
7605 struct secasvar *sav, *nextsav; in key_delete_all()
7710 struct secasvar *sav = NULL; in key_get()
7814 struct secasvar *sav = NULL; in key_getsastatbyspi_one()
8700 struct secasvar *sav, *nextsav; in key_delete_all_for_socket()
8771 struct secasvar *sav) in key_expire()
8912 struct secasvar *sav, *nextsav; in key_flush()
8992 struct secasvar *sav;
9003 struct secasvar *sav; in key_dump()
9850 struct secasvar *sav, in key_checktunnelsanity()
9868 struct secasvar *sav, in key_sa_recordxfer()
9935 struct secasvar *sav, in key_sa_chgstate()
9958 struct secasvar *sav) in key_sa_stir_iv()
10198 key_update_natt_keepalive_timestamp(struct secasvar *sav_sent, in key_update_natt_keepalive_timestamp()
10199 struct secasvar *sav_update) in key_update_natt_keepalive_timestamp()
10337 struct secasvar *sav, *nextsav; in key_delsp_for_ipsec_if()
10399 struct secasvar *sav = NULL; in key_fill_offload_frames_for_savs()