Lines Matching refs:walker
189 ipsa_t *walker; in sadb_insertassoc() local
196 walker = bucket->isaf_ipsa; in sadb_insertassoc()
197 ASSERT(walker == NULL || ipsa->ipsa_addrfam == walker->ipsa_addrfam); in sadb_insertassoc()
208 while (walker != NULL) { in sadb_insertassoc()
209 if (IPSA_ARE_ADDR_EQUAL(walker->ipsa_dstaddr, in sadb_insertassoc()
211 if (walker->ipsa_spi == ipsa->ipsa_spi) in sadb_insertassoc()
214 mutex_enter(&walker->ipsa_lock); in sadb_insertassoc()
216 (walker->ipsa_flags & IPSA_F_USED) && in sadb_insertassoc()
217 SA_UNIQUE_MATCH(walker, ipsa)) { in sadb_insertassoc()
218 walker->ipsa_flags |= IPSA_F_CINVALID; in sadb_insertassoc()
220 mutex_exit(&walker->ipsa_lock); in sadb_insertassoc()
224 if (IPSA_IS_ADDR_UNSPEC(walker->ipsa_srcaddr, in sadb_insertassoc()
225 walker->ipsa_addrfam)) in sadb_insertassoc()
226 ptpn = walker->ipsa_ptpn; in sadb_insertassoc()
227 else if (walker->ipsa_next == NULL) in sadb_insertassoc()
228 ptpn = &walker->ipsa_next; in sadb_insertassoc()
231 walker = walker->ipsa_next; in sadb_insertassoc()
593 ipsa_t *walker; in sadb_dump_fanout() local
612 for (walker = fanout[i].isaf_ipsa; walker != NULL; in sadb_dump_fanout()
613 walker = walker->ipsa_next) { in sadb_dump_fanout()
614 if (!do_peers && walker->ipsa_haspeer) in sadb_dump_fanout()
617 ((current - walker->ipsa_lastuse) > active_time)) in sadb_dump_fanout()
620 walker, samsg); in sadb_dump_fanout()
632 original_answer, walker, samsg); in sadb_dump_fanout()
1093 sadb_ext_t *walker; /* For when we need a generic ext. pointer. */ in sadb_sa2msg() local
1389 walker = (sadb_ext_t *)cur; in sadb_sa2msg()
1391 key = (sadb_key_t *)walker; in sadb_sa2msg()
1397 walker = (sadb_ext_t *)((uint64_t *)walker + in sadb_sa2msg()
1398 walker->sadb_ext_len); in sadb_sa2msg()
1403 key = (sadb_key_t *)walker; in sadb_sa2msg()
1414 walker = (sadb_ext_t *)((uint64_t *)walker + in sadb_sa2msg()
1415 walker->sadb_ext_len); in sadb_sa2msg()
1419 ident = (sadb_ident_t *)walker; in sadb_sa2msg()
1427 walker = (sadb_ext_t *)((uint64_t *)walker + in sadb_sa2msg()
1428 walker->sadb_ext_len); in sadb_sa2msg()
1432 ident = (sadb_ident_t *)walker; in sadb_sa2msg()
1440 walker = (sadb_ext_t *)((uint64_t *)walker + in sadb_sa2msg()
1441 walker->sadb_ext_len); in sadb_sa2msg()
1445 sens = (sadb_sens_t *)walker; in sadb_sa2msg()
1449 walker = (sadb_ext_t *)((uint64_t *)walker + in sadb_sa2msg()
1450 walker->sadb_ext_len); in sadb_sa2msg()
1454 sens = (sadb_sens_t *)walker; in sadb_sa2msg()
1461 walker = (sadb_ext_t *)((uint64_t *)walker + in sadb_sa2msg()
1462 walker->sadb_ext_len); in sadb_sa2msg()
1466 pair_ext = (sadb_x_pair_t *)walker; in sadb_sa2msg()
1472 walker = (sadb_ext_t *)((uint64_t *)walker + in sadb_sa2msg()
1473 walker->sadb_ext_len); in sadb_sa2msg()
1477 repl_ctr = (sadb_x_replay_ctr_t *)walker; in sadb_sa2msg()
1482 walker = (sadb_ext_t *)(repl_ctr + 1); in sadb_sa2msg()
4843 ipsacq_t *walker; local
4857 for (walker = bucket->iacqf_ipsacq; walker != NULL;
4858 walker = walker->ipsacq_next) {
4859 mutex_enter(&walker->ipsacq_lock);
4860 fam = walker->ipsacq_addrfam;
4861 if (IPSA_ARE_ADDR_EQUAL(dst, walker->ipsacq_dstaddr, fam) &&
4862 IPSA_ARE_ADDR_EQUAL(src, walker->ipsacq_srcaddr, fam) &&
4863 ip_addr_match((uint8_t *)isrc, walker->ipsacq_innersrcpfx,
4864 (in6_addr_t *)walker->ipsacq_innersrc) &&
4865 ip_addr_match((uint8_t *)idst, walker->ipsacq_innerdstpfx,
4866 (in6_addr_t *)walker->ipsacq_innerdst) &&
4867 (ap == walker->ipsacq_act) &&
4868 (pp == walker->ipsacq_policy) &&
4870 (unique_id == walker->ipsacq_unique_id) &&
4871 (ipsec_label_match(tsl, walker->ipsacq_tsl)))
4873 mutex_exit(&walker->ipsacq_lock);
4876 return (walker);
5139 ipsec_action_t *walker; local
5204 for (walker = ap; walker != NULL; walker = walker->ipa_next) {
5208 if (walker->ipa_act.ipa_type != IPSEC_POLICY_APPLY)
5211 prot = &walker->ipa_act.ipa_apply;
5212 if (walker->ipa_act.ipa_apply.ipp_km_proto != 0)
5213 kmp = walker->ipa_act.ipa_apply.ipp_km_proto;
5214 if (walker->ipa_act.ipa_apply.ipp_km_cookie != 0)
5215 kmc = walker->ipa_act.ipa_apply.ipp_km_cookie;
5216 if (walker->ipa_act.ipa_apply.ipp_replay_depth) {
5218 walker->ipa_act.ipa_apply.ipp_replay_depth;
5346 ipsec_action_t *walker; local
5354 for (walker = ap; walker != NULL; walker = walker->ipa_next) {
5360 if (walker->ipa_act.ipa_type != IPSEC_ACT_APPLY)
5363 ipp = &walker->ipa_act.ipa_apply;
5365 if (walker->ipa_act.ipa_apply.ipp_km_proto)
5367 if (walker->ipa_act.ipa_apply.ipp_km_cookie)
5369 if (walker->ipa_act.ipa_apply.ipp_replay_depth)
5402 for (walker = ap; walker != NULL; walker = walker->ipa_next) {
5406 if (walker->ipa_act.ipa_type != IPSEC_ACT_APPLY)
5408 cur = sadb_action_to_ecomb(cur, end, walker, ns);