Lines Matching refs:num_protos

184 write_new_algfile(ipsec_proto_t *protos, int num_protos)  in write_new_algfile()  argument
220 for (i = 0; i < num_protos; i++) { in write_new_algfile()
247 for (i = 0; i < num_protos; i++) { in write_new_algfile()
332 _clean_trash(protos, num_protos); in write_new_algfile()
342 proto_setup(ipsec_proto_t **protos, int *num_protos, int proto_num, in proto_setup() argument
348 _build_internal_algs(protos, num_protos); in proto_setup()
353 for (i = 0; i < *num_protos; i++) { in proto_setup()
363 _clean_trash(*protos, *num_protos); in proto_setup()
488 int num_protos, i; in addipsecalg() local
493 if ((current_proto = proto_setup(&protos, &num_protos, in addipsecalg()
519 _clean_trash(protos, num_protos); in addipsecalg()
539 num_protos)); in addipsecalg()
541 _clean_trash(protos, num_protos); in addipsecalg()
545 _clean_trash(protos, num_protos); in addipsecalg()
555 _clean_trash(protos, num_protos); in addipsecalg()
561 _clean_trash(protos, num_protos); in addipsecalg()
567 return (write_new_algfile(protos, num_protos)); in addipsecalg()
578 int num_protos; in delipsecalgbyname() local
580 if ((current_proto = proto_setup(&protos, &num_protos, proto_num, in delipsecalgbyname()
585 return (write_new_algfile(protos, num_protos)); in delipsecalgbyname()
587 _clean_trash(protos, num_protos); in delipsecalgbyname()
598 int i, num_protos; in delipsecalgbynum() local
601 if ((current_proto = proto_setup(&protos, &num_protos, proto_num, in delipsecalgbynum()
620 return (write_new_algfile(protos, num_protos)); in delipsecalgbynum()
623 _clean_trash(protos, num_protos); in delipsecalgbynum()
631 delipsecproto_common(ipsec_proto_t *protos, int num_protos, in delipsecproto_common() argument
642 for (i = (proto - protos + 1); i < num_protos; i++) in delipsecproto_common()
654 int i, num_protos; in addipsecproto() local
661 current_proto = proto_setup(&protos, &num_protos, proto_num, B_FALSE); in addipsecproto()
675 delipsecproto_common(protos, num_protos--, current_proto); in addipsecproto()
679 for (i = 0; i < num_protos; i++) { in addipsecproto()
683 delipsecproto_common(protos, num_protos--, &protos[i]); in addipsecproto()
689 num_protos++; in addipsecproto()
690 new_proto = realloc(protos, num_protos * in addipsecproto()
693 _clean_trash(protos, num_protos - 1); in addipsecproto()
697 new_proto += (num_protos - 1); in addipsecproto()
705 _clean_trash(protos, num_protos); in addipsecproto()
713 return (write_new_algfile(protos, num_protos)); in addipsecproto()
724 int num_protos; 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()
732 return (write_new_algfile(protos, num_protos)); in delipsecprotobynum()
806 int num_protos; in ipsecproto_get_exec_mode() local
808 if ((current_proto = proto_setup(&protos, &num_protos, proto_num, in ipsecproto_get_exec_mode()
814 _clean_trash(protos, num_protos); in ipsecproto_get_exec_mode()
826 int num_protos; in ipsecproto_set_exec_mode() local
828 if ((current_proto = proto_setup(&protos, &num_protos, proto_num, in ipsecproto_set_exec_mode()
834 return (write_new_algfile(protos, num_protos)); in ipsecproto_set_exec_mode()