Lines Matching defs:entry

501 		    "Unable to allocate %u entry IPv%u %s SADB hash table",
604 * - Walk each entry, doing an sadb_dump_deliver() on it.
682 * bucket, the entry and "cookie" to the callback function.
692 void (*walkfn)(isaf_t *head, ipsa_t *entry, void *cookie),
697 ipsa_t *entry, *next;
701 for (entry = table[i].isaf_ipsa; entry != NULL;
702 entry = next) {
703 next = entry->ipsa_next;
704 (*walkfn)(&table[i], entry, cookie);
2402 sadb_purge_cb(isaf_t *head, ipsa_t *entry, void *cookie)
2408 mutex_enter(&entry->ipsa_lock);
2410 if (entry->ipsa_state == IPSA_STATE_LARVAL ||
2411 !sadb_match_query(&ps->sq, entry)) {
2412 mutex_exit(&entry->ipsa_lock);
2417 sadb_delete_cluster(entry);
2419 entry->ipsa_state = IPSA_STATE_DEAD;
2420 (void) sadb_torch_assoc(head, entry);
2459 sadb_delpair_state_one(isaf_t *head, ipsa_t *entry, void *cookie)
2468 mutex_enter(&entry->ipsa_lock);
2470 if ((entry->ipsa_state != ps->sadb_sa_state) ||
2472 !IPSA_ARE_ADDR_EQUAL(entry->ipsa_srcaddr, sq->srcaddr, sq->af))) {
2473 mutex_exit(&entry->ipsa_lock);
2485 if (entry->ipsa_haspeer) {
2486 inbound_bucket = INBOUND_BUCKET(sq->sp, entry->ipsa_spi);
2489 entry->ipsa_spi, entry->ipsa_srcaddr,
2490 entry->ipsa_dstaddr, entry->ipsa_addrfam);
2492 inbound_bucket = INBOUND_BUCKET(sq->sp, entry->ipsa_otherspi);
2495 entry->ipsa_otherspi, entry->ipsa_dstaddr,
2496 entry->ipsa_srcaddr, entry->ipsa_addrfam);
2499 entry->ipsa_state = IPSA_STATE_DEAD;
2500 (void) sadb_torch_assoc(head, entry);
3547 * Enter the bucket locks. The order of entry is outbound,
4955 * Check buckets to see if there is an existing entry. If so,
6628 * Don't default to global if we didn't find a matching policy entry.
6859 * Now that we have a policy entry/widget, construct an ACQUIRE
7069 sadb_alg_update_cb(isaf_t *head, ipsa_t *entry, void *cookie)
7077 if (entry->ipsa_state == IPSA_STATE_LARVAL)
7080 mutex_enter(&entry->ipsa_lock);
7082 if ((entry->ipsa_encr_alg != SADB_EALG_NONE && entry->ipsa_encr_alg !=
7084 (entry->ipsa_auth_alg != SADB_AALG_NONE &&
7086 entry->ipsa_flags |= IPSA_F_ASYNC;
7088 entry->ipsa_flags &= ~IPSA_F_ASYNC;
7093 if (entry->ipsa_auth_alg == update_state->alg_id)
7094 ctx_tmpl = &entry->ipsa_authtmpl;
7097 if (entry->ipsa_encr_alg == update_state->alg_id)
7098 ctx_tmpl = &entry->ipsa_encrtmpl;
7105 mutex_exit(&entry->ipsa_lock);
7116 (void) ipsec_create_ctx_tmpl(entry,
7125 ipsec_destroy_ctx_tmpl(entry, update_state->alg_type);
7128 mutex_exit(&entry->ipsa_lock);