Lines Matching refs:current_proto

346 	ipsec_proto_t *current_proto, *ret_proto = NULL;  in proto_setup()  local
354 current_proto = (*protos) + i; in proto_setup()
355 if (current_proto->proto_num == proto_num) { in proto_setup()
356 ret_proto = current_proto; in proto_setup()
486 ipsec_proto_t *protos, *current_proto; in addipsecalg() local
493 if ((current_proto = proto_setup(&protos, &num_protos, in addipsecalg()
501 if (ipsecalg_exists(newbie, current_proto)) in addipsecalg()
513 current_proto, forced_add); in addipsecalg()
524 for (i = 0; i < current_proto->proto_numalgs; i++) { in addipsecalg()
525 if (current_proto->proto_algs[i]->a_alg_num == in addipsecalg()
536 current_proto->proto_algs[i]); in addipsecalg()
537 current_proto->proto_algs[i] = clone; in addipsecalg()
552 holder = realloc(current_proto->proto_algs, in addipsecalg()
564 current_proto->proto_numalgs++; in addipsecalg()
565 current_proto->proto_algs = holder; in addipsecalg()
566 current_proto->proto_algs[i] = clone; in addipsecalg()
577 ipsec_proto_t *protos, *current_proto; in delipsecalgbyname() local
580 if ((current_proto = proto_setup(&protos, &num_protos, proto_num, in delipsecalgbyname()
584 if (delipsecalgbyname_common(name, current_proto, B_TRUE)) in delipsecalgbyname()
597 ipsec_proto_t *protos, *current_proto; in delipsecalgbynum() local
601 if ((current_proto = proto_setup(&protos, &num_protos, proto_num, in delipsecalgbynum()
605 for (i = 0; i < current_proto->proto_numalgs; i++) { in delipsecalgbynum()
607 if (current_proto->proto_algs[i]->a_alg_num == in delipsecalgbynum()
610 freeipsecalgent(current_proto->proto_algs[i]); in delipsecalgbynum()
613 current_proto->proto_algs[i - 1] = in delipsecalgbynum()
614 current_proto->proto_algs[i]; in delipsecalgbynum()
619 current_proto->proto_numalgs--; in delipsecalgbynum()
653 ipsec_proto_t *protos, *current_proto, *new_proto; in addipsecproto() local
661 current_proto = proto_setup(&protos, &num_protos, proto_num, B_FALSE); in addipsecproto()
664 if (current_proto != NULL) { in addipsecproto()
665 if ((strcmp(proto_name, current_proto->proto_name) == 0) && in addipsecproto()
666 (proto_exec_mode == current_proto->proto_exec_mode)) { in addipsecproto()
675 delipsecproto_common(protos, num_protos--, current_proto); in addipsecproto()
723 ipsec_proto_t *protos, *current_proto; in delipsecprotobynum() local
726 if ((current_proto = proto_setup(&protos, &num_protos, proto_num, in delipsecprotobynum()
730 delipsecproto_common(protos, num_protos--, current_proto); in delipsecprotobynum()
805 ipsec_proto_t *protos, *current_proto; in ipsecproto_get_exec_mode() local
808 if ((current_proto = proto_setup(&protos, &num_protos, proto_num, in ipsecproto_get_exec_mode()
812 *exec_mode = current_proto->proto_exec_mode; in ipsecproto_get_exec_mode()
825 ipsec_proto_t *protos, *current_proto; in ipsecproto_set_exec_mode() local
828 if ((current_proto = proto_setup(&protos, &num_protos, proto_num, in ipsecproto_set_exec_mode()
832 current_proto->proto_exec_mode = exec_mode; in ipsecproto_set_exec_mode()