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