| /netbsd-src/sys/netipsec/ |
| H A D | xform_esp.c | 137 esp_hdrsiz(const struct secasvar *sav) in esp_hdrsiz() argument 141 if (sav != NULL) { in esp_hdrsiz() 143 KASSERT(sav->tdb_encalgxform != NULL); in esp_hdrsiz() 152 if (sav->flags & SADB_X_EXT_OLD) in esp_hdrsiz() 156 size += sav->tdb_encalgxform->ivsize + 9 + in esp_hdrsiz() 160 if (sav->tdb_authalgxform != NULL && sav->replay) in esp_hdrsiz() 161 size += ah_authsiz(sav); in esp_hdrsiz() 180 esp_init(struct secasvar *sav, const struct xformsw *xsp) in esp_init() argument 187 txform = esp_algorithm_lookup(sav->alg_enc); in esp_init() 190 sav->alg_enc); in esp_init() [all …]
|
| H A D | xform_ah.c | 91 #define HDRSIZE(sav) \ argument 92 (((sav)->flags & SADB_X_EXT_OLD) ? \ 99 #define AUTHSIZE(sav) \ argument 100 ((sav->flags & SADB_X_EXT_OLD) ? 16 : (sav)->tdb_authalgxform->authsize) 152 ah_authsiz(const struct secasvar *sav) in ah_authsiz() argument 156 if (sav == NULL) { in ah_authsiz() 160 size = AUTHSIZE(sav); in ah_authsiz() 165 ah_hdrsiz(const struct secasvar *sav) in ah_hdrsiz() argument 169 if (sav != NULL) { in ah_hdrsiz() 172 KASSERT(sav->tdb_authalgxform != NULL); in ah_hdrsiz() [all …]
|
| H A D | xform_ipcomp.c | 99 ipcomp_init(struct secasvar *sav, const struct xformsw *xsp) in ipcomp_init() argument 106 tcomp = ipcomp_algorithm_lookup(sav->alg_enc); in ipcomp_init() 109 sav->alg_comp); in ipcomp_init() 112 sav->alg_comp = sav->alg_enc; /* set for doing histogram */ in ipcomp_init() 113 sav->tdb_xform = xsp; in ipcomp_init() 114 sav->tdb_compalgxform = tcomp; in ipcomp_init() 118 cric.cri_alg = sav->tdb_compalgxform->type; in ipcomp_init() 120 ses = crypto_newsession(&sav->tdb_cryptoid, &cric, crypto_support); in ipcomp_init() 128 ipcomp_zeroize(struct secasvar *sav) in ipcomp_zeroize() argument 131 crypto_freesession(sav->tdb_cryptoid); in ipcomp_zeroize() [all …]
|
| H A D | xform_tcp.c | 85 tcpsignature_init(struct secasvar *sav, const struct xformsw *xsp) in tcpsignature_init() argument 89 if (sav->spi != htonl(TCP_SIG_SPI)) { in tcpsignature_init() 90 DPRINTF("SPI %x must be TCP_SIG_SPI (0x1000)\n", sav->alg_auth); in tcpsignature_init() 93 if (sav->alg_auth != SADB_X_AALG_TCP_MD5) { in tcpsignature_init() 95 sav->alg_auth); in tcpsignature_init() 98 if (sav->key_auth == NULL) { in tcpsignature_init() 102 keylen = _KEYLEN(sav->key_auth); in tcpsignature_init() 112 tcpsignature_zeroize(struct secasvar *sav) in tcpsignature_zeroize() argument 114 if (sav->key_auth) { in tcpsignature_zeroize() 115 explicit_memset(_KEYBUF(sav->key_auth), 0, in tcpsignature_zeroize() [all …]
|
| H A D | key.c | 214 * - SAs are managed by the list called key_sad.sahlists and sav lists of 216 * - An sav is supposed to be an SA from a viewpoint of users 217 * - A sah has sav lists for each SA state 221 * - All sav whose state is MATURE or DYING are registered to the lookup 223 * - The table is used to search an sav without use of saidx. 234 * - An sah is destroyed when its state become DEAD and no sav is 237 * - sav's lifetime is managed by localcount(9) 238 * - Getting an sav entry 239 * - First get an sah by saidx and get an sav from either of sah's savlists 240 * - Must iterate the list and increment the reference count of a found sav 376 SAVLIST_ENTRY_INIT(sav) global() argument 378 SAVLIST_ENTRY_DESTROY(sav) global() argument 383 SAVLIST_WRITER_REMOVE(sav) global() argument 385 SAVLIST_READER_FOREACH(sav,sah,state) global() argument 388 SAVLIST_WRITER_FOREACH(sav,sah,state) global() argument 391 SAVLIST_WRITER_INSERT_BEFORE(sav,new) global() argument 393 SAVLIST_WRITER_INSERT_AFTER(sav,new) global() argument 398 SAVLIST_WRITER_INSERT_HEAD(sah,state,sav) global() argument 401 SAVLIST_WRITER_NEXT(sav) global() argument 418 SAVLIST_READER_NEXT(sav) global() argument 422 SAVLUT_ENTRY_INIT(sav) global() argument 424 SAVLUT_READER_FOREACH(sav,dst,proto,hash_key) global() argument 429 SAVLUT_WRITER_INSERT_HEAD(sav) global() argument 431 SAVLUT_WRITER_REMOVE(sav) global() argument 606 KEY_CHKSASTATE(head,sav) global() argument 1075 struct secasvar *sav; key_checkrequest() local 1126 struct secasvar *sav = NULL; key_lookup_sa_bysaidx() local 1261 struct secasvar *sav; key_lookup_sa() local 1371 struct secasvar *sav, *next; key_validate_savlist() local 1441 key_init_sav(struct secasvar * sav) key_init_sav() argument 1452 key_sa_refcnt(const struct secasvar * sav) key_sa_refcnt() argument 1460 key_sa_ref(struct secasvar * sav,const char * where,int tag) key_sa_ref() argument 1471 key_sa_unref(struct secasvar * sav,const char * where,int tag) key_sa_unref() argument 1581 key_unlink_sav(struct secasvar * sav) key_unlink_sav() argument 1600 key_destroy_sav(struct secasvar * sav) key_destroy_sav() argument 1615 key_wait_sav(struct secasvar * sav) key_wait_sav() argument 3365 key_clear_xform(struct secasvar * sav) key_clear_xform() argument 3389 key_delsav(struct secasvar * sav) key_delsav() argument 3476 struct secasvar *sav; key_checkspidup() local 3513 struct secasvar *sav = NULL; key_getsavbyspi() local 3551 struct secasvar *sav = NULL; key_lookup_and_remove_sav() local 3581 key_freesaval(struct secasvar * sav) key_freesaval() argument 3614 key_setsaval(struct secasvar * sav,struct mbuf * m,const struct sadb_msghdr * mhp) key_setsaval() argument 3810 key_init_xform(struct secasvar * sav) key_init_xform() argument 3900 key_setdumpsa(struct secasvar * sav,u_int8_t type,u_int8_t satype,u_int32_t seq,u_int32_t pid) key_setdumpsa() argument 4269 key_setsadbsa(struct secasvar * sav) key_setsadbsa() argument 4997 struct secasvar *sav; key_timehandler_sad() local 5591 key_handle_natt_info(struct secasvar * sav,const struct sadb_msghdr * mhp) key_handle_natt_info() argument 5731 struct secasvar *sav, *newsav, *oldsav; key_api_update() local 5939 struct secasvar *sav; key_getsavbyseq() local 6060 struct secasvar *sav; key_api_add() local 6263 struct secasvar *sav = NULL; key_api_delete() local 6351 struct secasvar *sav; key_delete_all() local 6417 struct secasvar *sav = NULL; key_api_get() local 7435 key_expire(struct secasvar * sav) key_expire() argument 7545 struct secasvar *sav; key_api_flush() local 7607 struct secasvar *sav; key_setdump_chain() local 8363 key_checktunnelsanity(struct secasvar * sav,u_int family,void * src,void * dst) key_checktunnelsanity() argument 8441 key_sa_recordxfer(struct secasvar * sav,struct mbuf * m) key_sa_recordxfer() argument 8515 key_sa_chgstate(struct secasvar * sav,u_int8_t state) key_sa_chgstate() argument 8605 struct secasvar *sav; key_setdump() local 8756 key_savlut_writer_insert_head(struct secasvar * sav) key_savlut_writer_insert_head() argument [all...] |
| H A D | ipsec_output.c | 142 struct secasvar *sav, int flags) in ipsec_process_done() argument 158 KASSERT(sav != NULL); in ipsec_process_done() 160 saidx = &sav->sah->saidx; in ipsec_process_done() 162 if (sav->natt_type != 0) { in ipsec_process_done() 192 (u_long)ntohl(sav->spi)); in ipsec_process_done() 213 if (sav->natt_type != 0) in ipsec_process_done() 231 if (sav->natt_type != 0) { in ipsec_process_done() 244 key_sa_recordxfer(sav, m); in ipsec_process_done() 403 struct secasvar *sav = NULL; in ipsec_nextisr() local 423 *error = key_checkrequest(isr, &saidx, &sav); in ipsec_nextisr() [all …]
|
| H A D | key_debug.c | 525 kdebug_secasv(const struct secasvar *sav) 528 if (sav == NULL) 532 kdebug_secasindex(&sav->sah->saidx); 535 key_sa_refcnt(sav), sav->state, sav->alg_auth, sav->alg_enc); 537 (u_int32_t)ntohl(sav->spi), sav->flags); 539 if (sav->key_auth != NULL) 540 kdebug_sadb_key((struct sadb_ext *)sav->key_auth); 541 if (sav->key_enc != NULL) 542 kdebug_sadb_key((struct sadb_ext *)sav->key_enc); 544 if (sav->replay != NULL) [all …]
|
| H A D | ipsec_input.c | 219 struct secasvar *sav; in ipsec_common_input() local 300 sav = KEY_LOOKUP_SA(&dst_address, sproto, spi, sport, dport); in ipsec_common_input() 301 if (sav == NULL) { in ipsec_common_input() 337 KASSERT(sav->tdb_xform != NULL); in ipsec_common_input() 343 error = (*sav->tdb_xform->xf_input)(m, sav, skip, protoff); in ipsec_common_input() 344 KEY_SA_UNREF(&sav); in ipsec_common_input() 366 ipsec4_common_input_cb(struct mbuf *m, struct secasvar *sav, in ipsec4_common_input_cb() argument 381 KASSERT(sav != NULL); in ipsec4_common_input_cb() 382 saidx = &sav->sah->saidx; in ipsec4_common_input_cb() 399 ipsec_address(&sav->sah->saidx.dst, buf, in ipsec4_common_input_cb() [all …]
|
| H A D | ipsec_netbsd.c | 93 struct secasvar *sav; in ah4_ctlinput() local 107 sav = KEY_LOOKUP_SA((const union sockaddr_union *)sa, in ah4_ctlinput() 110 if (sav) { in ah4_ctlinput() 111 if (SADB_SASTATE_USABLE_P(sav)) { in ah4_ctlinput() 123 KEY_SA_UNREF(&sav); in ah4_ctlinput() 136 struct secasvar *sav; in esp4_ctlinput() local 150 sav = KEY_LOOKUP_SA((const union sockaddr_union *)sa, in esp4_ctlinput() 153 if (sav) { in esp4_ctlinput() 154 if (SADB_SASTATE_USABLE_P(sav)) { in esp4_ctlinput() 166 KEY_SA_UNREF(&sav); in esp4_ctlinput() [all …]
|
| H A D | ipsec.c | 759 struct secasvar *sav; in ipsec_mtu() local 761 sav = ipsec_lookup_sa(sp->req, m); in ipsec_mtu() 762 if (sav != NULL) { in ipsec_mtu() 766 ro = &sav->sah->sa_route; in ipsec_mtu() 774 KEY_SA_UNREF(&sav); in ipsec_mtu() 1496 struct secasvar *sav; in ipsec_sp_hdrsiz() local 1500 sav = ipsec_lookup_sa(isr, m); in ipsec_sp_hdrsiz() 1501 if (sav != NULL) { in ipsec_sp_hdrsiz() 1502 clen = esp_hdrsiz(sav); in ipsec_sp_hdrsiz() 1503 KEY_SA_UNREF(&sav); in ipsec_sp_hdrsiz() [all …]
|
| H A D | xform_ipip.c | 320 ipip_output(struct mbuf *m, struct secasvar *sav, struct mbuf **mp) in ipip_output() argument 334 KASSERT(sav != NULL); in ipip_output() 341 saidx = &sav->sah->saidx; in ipip_output() 351 (u_long)ntohl(sav->spi)); in ipip_output() 426 (u_long)ntohl(sav->spi)); in ipip_output() 552 ipe4_init(struct secasvar *sav, const struct xformsw *xsp) in ipe4_init() argument 554 sav->tdb_xform = xsp; in ipe4_init() 559 ipe4_zeroize(struct secasvar *sav) in ipe4_zeroize() argument 561 sav->tdb_xform = NULL; in ipe4_zeroize() 565 ipe4_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) in ipe4_input() argument [all …]
|
| H A D | key.h | 94 #define KEY_SA_REF(sav) \ argument 95 key_sa_ref(sav, __func__, __LINE__)
|
| H A D | ipsecif.c | 197 struct secasvar *sav; in ipsecif4_needfrag() local 199 sav = key_lookup_sa_bysaidx(&isr->saidx); in ipsecif4_needfrag() 200 if (sav == NULL) in ipsecif4_needfrag() 203 if (!(sav->natt_type & UDP_ENCAP_ESPINUDP)) { in ipsecif4_needfrag() 214 mtu = sav->esp_frag; in ipsecif4_needfrag() 219 KEY_SA_UNREF(&sav); in ipsecif4_needfrag()
|
| H A D | xform.h | 89 int xform_init(struct secasvar *sav, int);
|
| /netbsd-src/crypto/dist/ipsec-tools/src/libipsec/ |
| H A D | key_debug.c | 650 if (isr->sav != NULL) in kdebug_secpolicy() 651 kdebug_secasv(isr->sav); in kdebug_secpolicy() 712 kdebug_secasv(struct secasvar *sav) in kdebug_secasv() argument 715 if (sav == NULL) in kdebug_secasv() 719 kdebug_secasindex(&sav->sah->saidx); in kdebug_secasv() 722 sav->refcnt, sav->state, sav->alg_auth, sav->alg_enc); in kdebug_secasv() 724 (u_int32_t)ntohl(sav->spi), sav->flags); in kdebug_secasv() 726 if (sav->key_auth != NULL) in kdebug_secasv() 727 kdebug_sadb_key((struct sadb_ext *)sav->key_auth); in kdebug_secasv() 728 if (sav->key_enc != NULL) in kdebug_secasv() [all …]
|
| /netbsd-src/bin/csh/ |
| H A D | exec.c | 114 Char *blk[2], **av, *dp, **pv, *sav; in doexec() local 204 sav = Strspl(STRslash, *av); /* / command name for postpending */ in doexec() 205 Vsav = sav; in doexec() 225 dp = Strspl(*pv, sav); in doexec() 238 free(sav); in doexec() 510 Char **pv, *sav; in iscommand() local 522 sav = Strspl(STRslash, name); /* / command name for postpending */ in iscommand() 534 free(sav); in iscommand() 539 if (executable(*pv, sav, 0)) { in iscommand() 540 free(sav); in iscommand() [all …]
|
| /netbsd-src/lib/libc/compat/sys/ |
| H A D | compat___sigaction14_sigtramp.c | 67 int sav = errno; in __weak_alias() local 72 errno = sav; in __weak_alias()
|
| /netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
| H A D | spa.c | 1523 spa_aux_vdev_t *sav = &spa->spa_l2cache; in spa_load_l2cache() local 1527 if (sav->sav_config != NULL) { in spa_load_l2cache() 1528 VERIFY(nvlist_lookup_nvlist_array(sav->sav_config, in spa_load_l2cache() 1536 oldvdevs = sav->sav_vdevs; in spa_load_l2cache() 1537 oldnvdevs = sav->sav_count; in spa_load_l2cache() 1538 sav->sav_vdevs = NULL; in spa_load_l2cache() 1539 sav->sav_count = 0; in spa_load_l2cache() 1577 vd->vdev_aux = sav; in spa_load_l2cache() 1612 if (sav->sav_config == NULL) in spa_load_l2cache() 1615 sav->sav_vdevs = newvdevs; in spa_load_l2cache() [all …]
|
| /netbsd-src/external/bsd/ipf/dist/tools/ |
| H A D | ipmon_y.y | 688 ipmon_saver_int_t *sav, **imsip; in unload_config() local 701 for (imsip = &saverlist; (sav = *imsip) != NULL; ) { in unload_config() 702 if (sav->imsi_handle == NULL) in unload_config() 703 imsip = &sav->imsi_next; in unload_config() 705 dlclose(sav->imsi_handle); in unload_config() 707 *imsip = sav->imsi_next; in unload_config() 708 is = sav->imsi_stor; in unload_config() 709 free(sav); in unload_config()
|
| /netbsd-src/sys/net/ |
| H A D | pfkeyv2.h | 344 #define SADB_SASTATE_USABLE_P(sav) \ argument 345 ((sav)->state == SADB_SASTATE_MATURE || (sav)->state == SADB_SASTATE_DYING)
|
| /netbsd-src/sys/netinet/ |
| H A D | tcp_syncache.c | 1093 struct secasvar *sav = NULL; in syn_cache_respond() local 1212 sav = tcp_signature_getsav(m); in syn_cache_respond() 1213 if (sav == NULL) { in syn_cache_respond() 1249 if (sav) { in syn_cache_respond() 1250 (void)tcp_signature(m, th, hlen, sav, sigp); in syn_cache_respond() 1251 key_sa_recordxfer(sav, m); in syn_cache_respond() 1252 KEY_SA_UNREF(&sav); in syn_cache_respond()
|
| H A D | tcp_input.c | 3013 struct secasvar *sav, char *sig) in tcp_signature() 3026 if (sav == NULL) in tcp_signature() 3072 MD5Update(&ctx, _KEYBUF(sav->key_auth), _KEYLEN(sav->key_auth)); 3094 struct secasvar *sav = NULL; in tcp_dooptions() 3224 sav = tcp_signature_getsav(m); in tcp_dooptions() 3225 if (sav == NULL && tp->t_state == TCPS_LISTEN) in tcp_dooptions() 3236 if (tcp_signature(m, th, toff, sav, sig) < 0) { in tcp_dooptions() 3248 key_sa_recordxfer(sav, m); in tcp_dooptions() 3249 KEY_SA_UNREF(&sav); 3004 tcp_signature(struct mbuf * m,struct tcphdr * th,int thoff,struct secasvar * sav,char * sig) tcp_signature() argument 3085 struct secasvar *sav = NULL; tcp_dooptions() local [all...] |
| /netbsd-src/games/larn/datfiles/ |
| H A D | larnopts | 11 savefile: "/save/noah/games/Larn12.0.sav"
|
| /netbsd-src/sys/arch/cesfic/cesfic/ |
| H A D | dp8570a.h | 24 } sav; member
|
| /netbsd-src/external/bsd/file/dist/magic/magdir/ |
| H A D | wordprocessors | 402 …riant under program directory like: wt13en.hwl Wt13de.sav Wt13it.sav wt13ru.sav WT21us.sav Wtcz.sa… 403 !:ext uwl/hwl/sav 406 # look for beginning of word list starting mostly with letter a as UTF-16 like: Wt13es.sav 407 # but not found in russian wt13ru.sav
|