Lines Matching defs:looknew
764 dig_lookup_t *looknew;
770 looknew = isc_mem_allocate(mctx, sizeof(struct dig_lookup));
771 if (looknew == NULL)
774 looknew->pending = ISC_TRUE;
775 looknew->textname[0] = 0;
776 looknew->cmdline[0] = 0;
777 looknew->rdtype = dns_rdatatype_a;
778 looknew->qrdtype = dns_rdatatype_a;
779 looknew->rdclass = dns_rdataclass_in;
780 looknew->rdtypeset = ISC_FALSE;
781 looknew->rdclassset = ISC_FALSE;
782 looknew->sendspace = NULL;
783 looknew->sendmsg = NULL;
784 looknew->name = NULL;
785 looknew->oname = NULL;
786 looknew->xfr_q = NULL;
787 looknew->current_query = NULL;
788 looknew->doing_xfr = ISC_FALSE;
789 looknew->ixfr_serial = 0;
790 looknew->trace = ISC_FALSE;
791 looknew->trace_root = ISC_FALSE;
792 looknew->identify = ISC_FALSE;
793 looknew->identify_previous_line = ISC_FALSE;
794 looknew->ignore = ISC_FALSE;
795 looknew->servfail_stops = ISC_TRUE;
796 looknew->besteffort = ISC_TRUE;
797 looknew->dnssec = ISC_FALSE;
798 looknew->ednsflags = 0;
799 looknew->opcode = dns_opcode_query;
800 looknew->expire = ISC_FALSE;
801 looknew->nsid = ISC_FALSE;
802 looknew->header_only = ISC_FALSE;
803 looknew->sendcookie = ISC_FALSE;
804 looknew->seenbadcookie = ISC_FALSE;
805 looknew->badcookie = ISC_TRUE;
807 looknew->idnout = ISC_TRUE;
809 looknew->idnout = ISC_FALSE;
812 looknew->sigchase = ISC_FALSE;
814 looknew->do_topdown = ISC_FALSE;
815 looknew->trace_root_sigchase = ISC_FALSE;
816 looknew->rdtype_sigchaseset = ISC_FALSE;
817 looknew->rdtype_sigchase = dns_rdatatype_any;
818 looknew->qrdtype_sigchase = dns_rdatatype_any;
819 looknew->rdclass_sigchase = dns_rdataclass_in;
820 looknew->rdclass_sigchaseset = ISC_FALSE;
823 looknew->udpsize = 0;
824 looknew->edns = -1;
825 looknew->recurse = ISC_TRUE;
826 looknew->aaonly = ISC_FALSE;
827 looknew->adflag = ISC_FALSE;
828 looknew->cdflag = ISC_FALSE;
829 looknew->print_unknown_format = ISC_FALSE;
830 looknew->zflag = ISC_FALSE;
831 looknew->ns_search_only = ISC_FALSE;
832 looknew->origin = NULL;
833 looknew->tsigctx = NULL;
834 looknew->querysig = NULL;
835 looknew->retries = tries;
836 looknew->nsfound = 0;
837 looknew->tcp_mode = ISC_FALSE;
838 looknew->tcp_mode_set = ISC_FALSE;
839 looknew->ip6_int = ISC_FALSE;
840 looknew->comments = ISC_TRUE;
841 looknew->stats = ISC_TRUE;
842 looknew->section_question = ISC_TRUE;
843 looknew->section_answer = ISC_TRUE;
844 looknew->section_authority = ISC_TRUE;
845 looknew->section_additional = ISC_TRUE;
846 looknew->new_search = ISC_FALSE;
847 looknew->done_as_is = ISC_FALSE;
848 looknew->need_search = ISC_FALSE;
849 looknew->ecs_addr = NULL;
850 looknew->cookie = NULL;
851 looknew->ednsopts = NULL;
852 looknew->ednsoptscnt = 0;
853 looknew->ednsneg = ISC_TRUE;
854 looknew->mapped = ISC_TRUE;
855 looknew->dscp = -1;
856 looknew->eoferr = 0;
857 dns_fixedname_init(&looknew->fdomain);
858 ISC_LINK_INIT(looknew, link);
859 ISC_LIST_INIT(looknew->q);
860 ISC_LIST_INIT(looknew->connecting);
861 ISC_LIST_INIT(looknew->my_server_list);
862 return (looknew);
868 cloneopts(dig_lookup_t *looknew, dig_lookup_t *lookold) {
869 size_t len = sizeof(looknew->ednsopts[0]) * EDNSOPT_OPTIONS;
871 looknew->ednsopts = isc_mem_allocate(mctx, len);
872 if (looknew->ednsopts == NULL)
875 looknew->ednsopts[i].code = 0;
876 looknew->ednsopts[i].length = 0;
877 looknew->ednsopts[i].value = NULL;
879 looknew->ednsoptscnt = 0;
887 looknew->ednsopts[i].value =
889 if (looknew->ednsopts[i].value == NULL)
891 memmove(looknew->ednsopts[i].value,
894 looknew->ednsopts[i].code = lookold->ednsopts[i].code;
895 looknew->ednsopts[i].length = len;
897 looknew->ednsoptscnt = lookold->ednsoptscnt;
909 dig_lookup_t *looknew;
915 looknew = make_empty_lookup();
916 INSIST(looknew != NULL);
917 strlcpy(looknew->textname, lookold->textname, MXNAME);
919 strlcpy(looknew->textnamesigchase, lookold->textnamesigchase, MXNAME);
921 strlcpy(looknew->cmdline, lookold->cmdline, MXNAME);
922 looknew->textname[MXNAME-1] = 0;
923 looknew->rdtype = lookold->rdtype;
924 looknew->qrdtype = lookold->qrdtype;
925 looknew->rdclass = lookold->rdclass;
926 looknew->rdtypeset = lookold->rdtypeset;
927 looknew->rdclassset = lookold->rdclassset;
928 looknew->doing_xfr = lookold->doing_xfr;
929 looknew->ixfr_serial = lookold->ixfr_serial;
930 looknew->trace = lookold->trace;
931 looknew->trace_root = lookold->trace_root;
932 looknew->identify = lookold->identify;
933 looknew->identify_previous_line = lookold->identify_previous_line;
934 looknew->ignore = lookold->ignore;
935 looknew->servfail_stops = lookold->servfail_stops;
936 looknew->besteffort = lookold->besteffort;
937 looknew->dnssec = lookold->dnssec;
938 looknew->ednsflags = lookold->ednsflags;
939 looknew->opcode = lookold->opcode;
940 looknew->expire = lookold->expire;
941 looknew->nsid = lookold->nsid;
942 looknew->header_only = lookold->header_only;
943 looknew->sendcookie = lookold->sendcookie;
944 looknew->seenbadcookie = lookold->seenbadcookie;
945 looknew->badcookie = lookold->badcookie;
946 looknew->cookie = lookold->cookie;
948 cloneopts(looknew, lookold);
950 looknew->ednsopts = NULL;
951 looknew->ednsoptscnt = 0;
953 looknew->ednsneg = lookold->ednsneg;
954 looknew->mapped = lookold->mapped;
955 looknew->idnout = lookold->idnout;
957 looknew->sigchase = lookold->sigchase;
959 looknew->do_topdown = lookold->do_topdown;
960 looknew->trace_root_sigchase = lookold->trace_root_sigchase;
961 looknew->rdtype_sigchaseset = lookold->rdtype_sigchaseset;
962 looknew->rdtype_sigchase = lookold->rdtype_sigchase;
963 looknew->qrdtype_sigchase = lookold->qrdtype_sigchase;
964 looknew->rdclass_sigchase = lookold->rdclass_sigchase;
965 looknew->rdclass_sigchaseset = lookold->rdclass_sigchaseset;
968 looknew->udpsize = lookold->udpsize;
969 looknew->edns = lookold->edns;
970 looknew->recurse = lookold->recurse;
971 looknew->aaonly = lookold->aaonly;
972 looknew->adflag = lookold->adflag;
973 looknew->cdflag = lookold->cdflag;
974 looknew->print_unknown_format = lookold->print_unknown_format;
975 looknew->zflag = lookold->zflag;
976 looknew->ns_search_only = lookold->ns_search_only;
977 looknew->tcp_mode = lookold->tcp_mode;
978 looknew->tcp_mode_set = lookold->tcp_mode_set;
979 looknew->comments = lookold->comments;
980 looknew->stats = lookold->stats;
981 looknew->section_question = lookold->section_question;
982 looknew->section_answer = lookold->section_answer;
983 looknew->section_authority = lookold->section_authority;
984 looknew->section_additional = lookold->section_additional;
985 looknew->origin = lookold->origin;
986 looknew->retries = lookold->retries;
987 looknew->tsigctx = NULL;
988 looknew->need_search = lookold->need_search;
989 looknew->done_as_is = lookold->done_as_is;
990 looknew->dscp = lookold->dscp;
991 looknew->eoferr = lookold->eoferr;
995 looknew->ecs_addr = isc_mem_allocate(mctx, len);
996 if (looknew->ecs_addr == NULL)
998 memmove(looknew->ecs_addr, lookold->ecs_addr, len);
1002 dns_fixedname_name(&looknew->fdomain), NULL);
1006 &looknew->my_server_list);
1007 return (looknew);
1020 dig_lookup_t *looknew;
1028 looknew = clone_lookup(lookold, servers);
1029 INSIST(looknew != NULL);
1032 lookold, lookold->link.next, looknew, looknew->link.next);
1033 ISC_LIST_PREPEND(lookup_list, looknew, link);
1035 lookold, looknew, looknew->link.next);
1036 return (looknew);