Lines Matching refs:acqrec

4112 	ipsacq_t *acqrec, *spareacq;
4130 for (acqrec = acqlist->iacqf_ipsacq; acqrec != NULL;
4131 acqrec = spareacq) {
4132 spareacq = acqrec->ipsacq_next;
4133 if (current > acqrec->ipsacq_expire)
4134 sadb_destroy_acquire(acqrec, ns);
5170 * this new record. The send-acquire callback assumes that acqrec is
5184 sadb_destroy_acquire(ipsacq_t *acqrec, netstack_t *ns)
5189 ASSERT(MUTEX_HELD(acqrec->ipsacq_linklock));
5191 if (acqrec->ipsacq_policy != NULL) {
5192 IPPOL_REFRELE(acqrec->ipsacq_policy);
5194 if (acqrec->ipsacq_act != NULL) {
5195 IPACT_REFRELE(acqrec->ipsacq_act);
5199 *(acqrec->ipsacq_ptpn) = acqrec->ipsacq_next;
5200 if (acqrec->ipsacq_next != NULL)
5201 acqrec->ipsacq_next->ipsacq_ptpn = acqrec->ipsacq_ptpn;
5203 if (acqrec->ipsacq_tsl != NULL) {
5204 label_rele(acqrec->ipsacq_tsl);
5205 acqrec->ipsacq_tsl = NULL;
5214 mutex_enter(&acqrec->ipsacq_lock);
5215 while (acqrec->ipsacq_mp != NULL) {
5216 mp = acqrec->ipsacq_mp;
5217 acqrec->ipsacq_mp = mp->b_next;
5225 mutex_exit(&acqrec->ipsacq_lock);
5228 mutex_destroy(&acqrec->ipsacq_lock);
5229 kmem_free(acqrec, sizeof (*acqrec));
5750 sadb_setup_acquire(ipsacq_t *acqrec, uint8_t satype, ipsec_stack_t *ipss)
5760 boolean_t tunnel_mode = (acqrec->ipsacq_inneraddrfam != 0);
5762 ASSERT(MUTEX_HELD(&acqrec->ipsacq_lock));
5802 af = acqrec->ipsacq_addrfam;
5825 samsg->sadb_msg_seq = acqrec->ipsacq_seq;
5827 ASSERT(MUTEX_HELD(&acqrec->ipsacq_lock));
5829 if ((acqrec->ipsacq_proto == check_proto) || tunnel_mode) {
5832 sport_typecode = acqrec->ipsacq_srcport;
5833 dport_typecode = acqrec->ipsacq_dstport;
5837 acqrec->ipsacq_srcaddr, sport_typecode, acqrec->ipsacq_proto, 0);
5840 acqrec->ipsacq_dstaddr, dport_typecode, acqrec->ipsacq_proto, 0);
5843 sport_typecode = acqrec->ipsacq_srcport;
5844 dport_typecode = acqrec->ipsacq_dstport;
5846 acqrec->ipsacq_inneraddrfam, acqrec->ipsacq_innersrc,
5847 sport_typecode, acqrec->ipsacq_inner_proto,
5848 acqrec->ipsacq_innersrcpfx);
5850 acqrec->ipsacq_inneraddrfam, acqrec->ipsacq_innerdst,
5851 dport_typecode, acqrec->ipsacq_inner_proto,
5852 acqrec->ipsacq_innerdstpfx);
5970 ipsacq_t *acqrec;
5994 for (acqrec = bucket->iacqf_ipsacq; acqrec != NULL;
5995 acqrec = acqrec->ipsacq_next) {
5996 if (samsg->sadb_msg_seq == acqrec->ipsacq_seq)
5997 break; /* for acqrec... loop. */
5999 if (acqrec != NULL)
6005 if (acqrec == NULL) {
6009 for (acqrec = bucket->iacqf_ipsacq; acqrec != NULL;
6010 acqrec = acqrec->ipsacq_next) {
6011 if (samsg->sadb_msg_seq == acqrec->ipsacq_seq)
6012 break; /* for acqrec... loop. */
6014 if (acqrec != NULL)
6022 if (acqrec == NULL)
6031 ASSERT(&bucket->iacqf_lock == acqrec->ipsacq_linklock);
6032 sadb_destroy_acquire(acqrec, ns);