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()
879 struct secasvar *
885 struct secasvar *sav; in key_alloc_outbound_sav_for_interface()
975 struct secasvar **sav) in key_checkrequest()
1044 struct secasvar *
1049 struct secasvar *sav; in key_allocsa_policy()
1105 key_send_delete(struct secasvar *sav) in key_send_delete()
1182 static struct secasvar *
1188 struct secasvar *sav, *nextsav, *candidate, *natt_candidate, *no_natt_candidate, *d; in key_do_allocsa_policy()
1322 struct secasvar *
1329 struct secasvar *sav, *match; in key_allocsa()
1486 struct secasvar *nextsav = NULL; in key_checksa_present()
1492 for (struct secasvar *sav = LIST_FIRST(&sah->savtree[state]); sav != NULL; sav = nextsav) { in key_checksa_present()
1523 struct secasvar *outsav) in key_natt_get_translated_port()
1582 struct secasvar *outsav, in key_do_get_translated_port()
1585 struct secasvar *currsav, *nextsav, *candidate; in key_do_get_translated_port()
1683 struct secasvar *sav, in key_freesav()
3839 struct secasvar *sav, *nextsav; in key_delsah()
3859 for (sav = (struct secasvar *)LIST_FIRST(&sah->savtree[state]); in key_delsah()
3913 static struct secasvar *
3921 struct secasvar *newsav; in key_newsav()
3931 newsav = kalloc_type(struct secasvar, Z_NOWAIT_ZERO); in key_newsav()
3934 newsav = kalloc_type(struct secasvar, Z_WAITOK_ZERO_NOFAIL); in key_newsav()
4024 secasvar, chain); in key_newsav()
4032 key_migratesav(struct secasvar *sav, in key_migratesav()
4045 LIST_INSERT_TAIL(&newsah->savtree[sav->state], sav, secasvar, chain); in key_migratesav()
4050 key_reset_sav(struct secasvar *sav) in key_reset_sav()
4111 struct secasvar *sav) in key_delsav()
4135 kfree_type(struct secasvar, sav); in key_delsav()
4200 static struct secasvar *
4205 struct secasvar *sav; in key_checkspidup()
4237 struct secasvar *sav, in key_setspi()
4255 static struct secasvar *
4260 struct secasvar *sav, *match; in key_getsavbyspi()
4296 struct secasvar *sav, in key_setsaval()
4587 struct secasvar *sav) in key_mature()
4745 struct secasvar *sav, in key_setdumpsa()
4974 struct secasvar *sav) in key_setsadbsa()
5927 struct secasvar **savexbuf = NULL, **savexptr = NULL; in key_timehandler()
5928 struct secasvar **savkabuf = NULL, **savkaptr = NULL; in key_timehandler()
5951 savexbuf = kalloc_type(struct secasvar *, savbufcount, Z_WAITOK); in key_timehandler()
5955 savkabuf = kalloc_type(struct secasvar *, savbufcount, Z_WAITOK); in key_timehandler()
6004 struct secasvar *sav, *nextsav; in key_timehandler()
6308 struct secasvar **savkaptr_sav = savkaptr; in key_timehandler()
6314 struct secasvar **savkaptr_update = savkaptr_sav; in key_timehandler()
6342 kfree_type(struct secasvar *, savbufcount, savkabuf); in key_timehandler()
6348 kfree_type(struct secasvar *, savbufcount, savexbuf); in key_timehandler()
6529 struct secasvar *newsav; in key_getspi()
6855 struct secasvar *sav = NULL; in key_update()
7049 struct secasvar *sav = NULL; in key_migrate()
7244 struct secasvar *newsav = NULL; in key_add()
7474 struct secasvar *sav = NULL; in key_delete()
7604 struct secasvar *sav, *nextsav; in key_delete_all()
7709 struct secasvar *sav = NULL; in key_get()
7813 struct secasvar *sav = NULL; in key_getsastatbyspi_one()
8699 struct secasvar *sav, *nextsav; in key_delete_all_for_socket()
8770 struct secasvar *sav) in key_expire()
8911 struct secasvar *sav, *nextsav; in key_flush()
8991 struct secasvar *sav;
9002 struct secasvar *sav; in key_dump()
9849 struct secasvar *sav, in key_checktunnelsanity()
9867 struct secasvar *sav, in key_sa_recordxfer()
9934 struct secasvar *sav, in key_sa_chgstate()
9957 struct secasvar *sav) in key_sa_stir_iv()
10197 key_update_natt_keepalive_timestamp(struct secasvar *sav_sent, in key_update_natt_keepalive_timestamp()
10198 struct secasvar *sav_update) in key_update_natt_keepalive_timestamp()
10336 struct secasvar *sav, *nextsav; in key_delsp_for_ipsec_if()
10398 struct secasvar *sav = NULL; in key_fill_offload_frames_for_savs()