Lines Matching refs:secasvar

165 static LIST_HEAD(_spihash, secasvar) spihash[SPIHASHSIZE];
401 static struct secasvar *key_do_allocsa_policy(struct secashead *, u_int, u_int16_t);
402 static int key_do_get_translated_port(struct secashead *, struct secasvar *, u_int);
430 static struct secasvar *key_newsav(struct mbuf *,
434 static struct secasvar *key_checkspidup(struct secasindex *, u_int32_t);
435 static void key_setspi __P((struct secasvar *, u_int32_t));
436 static struct secasvar *key_getsavbyspi(struct secashead *, u_int32_t);
437 static int key_setsaval(struct secasvar *, struct mbuf *,
439 static int key_mature(struct secasvar *);
440 static struct mbuf *key_setdumpsa(struct secasvar *, u_int8_t,
444 static struct mbuf *key_setsadbsa(struct secasvar *);
453 static void key_update_natt_keepalive_timestamp(struct secasvar *, struct secasvar *);
504 static int key_expire(struct secasvar *);
520 int ipsec_send_natt_keepalive(struct secasvar *sav);
521 bool ipsec_fill_offload_frame(ifnet_t ifp, struct secasvar *sav, struct ifnet_keepalive_offload_fra…
765 struct secasvar *
771 struct secasvar *sav; in key_alloc_outbound_sav_for_interface()
861 struct secasvar **sav) in key_checkrequest()
930 struct secasvar *
935 struct secasvar *sav; in key_allocsa_policy()
991 key_send_delete(struct secasvar *sav) in key_send_delete()
1068 static struct secasvar *
1074 struct secasvar *sav, *nextsav, *candidate, *natt_candidate, *no_natt_candidate, *d; in key_do_allocsa_policy()
1208 struct secasvar *
1220 struct secasvar *
1229 struct secasvar *sav, *match; in key_allocsa_extended()
1491 struct secasvar *nextsav = NULL; in key_checksa_present()
1494 for (struct secasvar *sav = LIST_FIRST(&sah->savtree[state]); sav != NULL; sav = nextsav) { in key_checksa_present()
1525 struct secasvar *outsav) in key_natt_get_translated_port()
1584 struct secasvar *outsav, in key_do_get_translated_port()
1587 struct secasvar *currsav, *nextsav, *candidate; in key_do_get_translated_port()
1685 struct secasvar *sav, in key_freesav()
3799 struct secasvar *sav, *nextsav; in key_delsah()
3819 for (sav = (struct secasvar *)LIST_FIRST(&sah->savtree[state]); in key_delsah()
3873 static struct secasvar *
3881 struct secasvar *newsav; in key_newsav()
3891 newsav = kalloc_type(struct secasvar, Z_NOWAIT_ZERO); in key_newsav()
3894 newsav = kalloc_type(struct secasvar, Z_WAITOK_ZERO_NOFAIL); in key_newsav()
3988 secasvar, chain); in key_newsav()
3996 key_migratesav(struct secasvar *sav, in key_migratesav()
4009 LIST_INSERT_TAIL(&newsah->savtree[SADB_SASTATE_MATURE], sav, secasvar, chain); in key_migratesav()
4014 key_reset_sav(struct secasvar *sav) in key_reset_sav()
4072 struct secasvar *sav) in key_delsav()
4096 kfree_type(struct secasvar, sav); in key_delsav()
4161 static struct secasvar *
4166 struct secasvar *sav; in key_checkspidup()
4198 struct secasvar *sav, in key_setspi()
4216 static struct secasvar *
4221 struct secasvar *sav, *match; in key_getsavbyspi()
4257 struct secasvar *sav, in key_setsaval()
4531 struct secasvar *sav) in key_mature()
4689 struct secasvar *sav, in key_setdumpsa()
4915 struct secasvar *sav) in key_setsadbsa()
5796 struct secasvar **savexbuf = NULL, **savexptr = NULL; in key_timehandler()
5797 struct secasvar **savkabuf = NULL, **savkaptr = NULL; in key_timehandler()
5821 savexbuf = kalloc_type(struct secasvar *, savbufcount, Z_WAITOK); in key_timehandler()
5825 savkabuf = kalloc_type(struct secasvar *, savbufcount, Z_WAITOK); in key_timehandler()
5874 struct secasvar *sav, *nextsav; in key_timehandler()
6168 struct secasvar **savkaptr_sav = savkaptr; in key_timehandler()
6174 struct secasvar **savkaptr_update = savkaptr_sav; in key_timehandler()
6202 kfree_type(struct secasvar *, savbufcount, savkabuf); in key_timehandler()
6208 kfree_type(struct secasvar *, savbufcount, savexbuf); in key_timehandler()
6388 struct secasvar *newsav; in key_getspi()
6720 struct secasvar *sav = NULL; in key_update()
6912 struct secasvar *sav = NULL; in key_migrate()
7105 struct secasvar *newsav = NULL; in key_add()
7332 struct secasvar *sav = NULL; in key_delete()
7462 struct secasvar *sav, *nextsav; in key_delete_all()
7567 struct secasvar *sav = NULL; in key_get()
7671 struct secasvar *sav = NULL; in key_getsastatbyspi_one()
8558 struct secasvar *sav, *nextsav; in key_delete_all_for_socket()
8629 struct secasvar *sav) in key_expire()
8770 struct secasvar *sav, *nextsav; in key_flush()
8850 struct secasvar *sav;
8861 struct secasvar *sav; in key_dump()
9693 struct secasvar *sav, in key_checktunnelsanity()
9711 struct secasvar *sav, in key_sa_recordxfer()
9785 struct secasvar *sav, in key_sa_chgstate()
9808 struct secasvar *sav) in key_sa_stir_iv()
10048 key_update_natt_keepalive_timestamp(struct secasvar *sav_sent, in key_update_natt_keepalive_timestamp()
10049 struct secasvar *sav_update) in key_update_natt_keepalive_timestamp()
10187 struct secasvar *sav, *nextsav; in key_delsp_for_ipsec_if()
10249 struct secasvar *sav = NULL; in key_fill_offload_frames_for_savs()