line |
true |
false |
branch |
238
|
2 |
17 |
if (value) { |
261
|
0 |
0 |
if (!packet) { |
268
|
0 |
0 |
for(i = 0; i < ldns_rr_list_rr_count(rrs); i++) { |
269
|
0 |
0 |
if (ldns_dname_compare(ldns_rr_owner( |
273
|
0 |
0 |
if (ret == NULL) { |
298
|
0 |
6 |
if(!packet) { |
305
|
6 |
6 |
for(i = 0; i < ldns_rr_list_rr_count(rrs); i++) { |
306
|
6 |
0 |
if (type == ldns_rr_get_type(ldns_rr_list_rr(rrs, i))) { |
316
|
0 |
6 |
if (ldns_rr_list_rr_count(new) == 0) { |
336
|
0 |
0 |
if(!packet) { |
344
|
0 |
0 |
for(i = 0; i < ldns_rr_list_rr_count(rrs); i++) { |
356
|
0 |
0 |
if (!ret) { |
380
|
0 |
0 |
|| ldns_rr_list_contains_rr(ldns_pkt_answer(pkt), rr) |
381
|
0 |
0 |
|| ldns_rr_list_contains_rr(ldns_pkt_authority(pkt), rr) |
382
|
0 |
0 |
|| ldns_rr_list_contains_rr(ldns_pkt_additional(pkt), rr); |
|
0 |
0 |
|| ldns_rr_list_contains_rr(ldns_pkt_additional(pkt), rr); |
417
|
0 |
0 |
if (!p) { |
420
|
0 |
0 |
if (ldns_pkt_section_count(p, LDNS_SECTION_ANY) > 0) { |
658
|
0 |
30 |
if (!ldns_rr_list_push_rr(ldns_pkt_question(packet), rr)) { |
664
|
0 |
2 |
if (!ldns_rr_list_push_rr(ldns_pkt_answer(packet), rr)) { |
670
|
0 |
0 |
if (!ldns_rr_list_push_rr(ldns_pkt_authority(packet), rr)) { |
676
|
0 |
0 |
if (!ldns_rr_list_push_rr(ldns_pkt_additional(packet), rr)) { |
694
|
1 |
2 |
if (ldns_pkt_rr(pkt, sec, rr)) { |
705
|
0 |
0 |
for(i = 0; i < ldns_rr_list_rr_count(list); i++) { |
706
|
0 |
0 |
if (!ldns_pkt_push_rr(p, s, ldns_rr_list_rr(list, i))) { |
717
|
0 |
0 |
for(i = 0; i < ldns_rr_list_rr_count(list); i++) { |
718
|
0 |
0 |
if (!ldns_pkt_safe_push_rr(p, s, ldns_rr_list_rr(list, i))) { |
727
|
56 |
0 |
return (ldns_pkt_edns_udp_size(pkt) > 0 || |
728
|
56 |
0 |
ldns_pkt_edns_extended_rcode(pkt) > 0 || |
729
|
56 |
0 |
ldns_pkt_edns_data(pkt) || |
730
|
56 |
6 |
ldns_pkt_edns_do(pkt) || |
|
0 |
56 |
ldns_pkt_edns_do(pkt) || |
743
|
0 |
75 |
if (!packet) { |
748
|
0 |
75 |
if (!packet->_header) { |
794
|
75 |
0 |
if (packet) { |
810
|
0 |
30 |
if (!packet) { |
813
|
0 |
30 |
if ((flags & LDNS_QR) == LDNS_QR) { |
816
|
0 |
30 |
if ((flags & LDNS_AA) == LDNS_AA) { |
819
|
22 |
8 |
if ((flags & LDNS_RD) == LDNS_RD) { |
822
|
0 |
30 |
if ((flags & LDNS_TC) == LDNS_TC) { |
825
|
0 |
30 |
if ((flags & LDNS_CD) == LDNS_CD) { |
828
|
0 |
30 |
if ((flags & LDNS_RA) == LDNS_RA) { |
831
|
0 |
30 |
if ((flags & LDNS_AD) == LDNS_AD) { |
851
|
0 |
0 |
if (!soa_rr) { |
855
|
0 |
0 |
if (!owner_rdf) { |
865
|
0 |
0 |
if (ldns_str2rdf_dname(&mname_rdf, ".") != LDNS_STATUS_OK) { |
871
|
0 |
0 |
if (ldns_str2rdf_dname(&rname_rdf, ".") != LDNS_STATUS_OK) { |
878
|
0 |
0 |
if (!serial_rdf) { |
885
|
0 |
0 |
if (!refresh_rdf) { |
892
|
0 |
0 |
if (!retry_rdf) { |
899
|
0 |
0 |
if (!expire_rdf) { |
906
|
0 |
0 |
if (!minimum_rdf) { |
926
|
0 |
0 |
if (!packet) { |
930
|
0 |
0 |
if (!ldns_pkt_set_flags(packet, flags)) { |
935
|
0 |
0 |
if (!question_rr) { |
939
|
0 |
0 |
if (rr_type == 0) { |
942
|
0 |
0 |
if (rr_class == 0) { |
946
|
0 |
0 |
if (ldns_str2rdf_dname(&name_rdf, name) == LDNS_STATUS_OK) { |
959
|
0 |
0 |
if (authsoa_rr) { |
965
|
0 |
0 |
if (p) { |
987
|
0 |
0 |
if (!authsoa_rr) { |
989
|
0 |
0 |
if (ldns_str2rdf_dname(&name_rdf, name) == LDNS_STATUS_OK) { |
1006
|
0 |
30 |
if (!packet) { |
1010
|
0 |
30 |
if (!ldns_pkt_set_flags(packet, flags)) { |
1015
|
0 |
30 |
if (!question_rr) { |
1020
|
0 |
30 |
if (rr_type == 0) { |
1023
|
0 |
30 |
if (rr_class == 0) { |
1033
|
0 |
30 |
if (authsoa_rr) { |
1054
|
0 |
0 |
if (!authsoa_rr) { |
1066
|
0 |
1 |
if (!p) { |
1070
|
0 |
1 |
if (ldns_pkt_get_rcode(p) == LDNS_RCODE_NXDOMAIN) { |
1074
|
1 |
0 |
if (ldns_pkt_ancount(p) == 0 && ldns_pkt_arcount(p) == 0 |
|
1 |
0 |
if (ldns_pkt_ancount(p) == 0 && ldns_pkt_arcount(p) == 0 |
1075
|
0 |
1 |
&& ldns_pkt_nscount(p) == 1) { |
1080
|
0 |
0 |
if (tmp) { |
1088
|
1 |
0 |
if (ldns_pkt_ancount(p) == 0 && ldns_pkt_nscount(p) > 0) { |
|
0 |
1 |
if (ldns_pkt_ancount(p) == 0 && ldns_pkt_nscount(p) > 0) { |
1091
|
0 |
0 |
if (tmp) { |
1112
|
0 |
17 |
if (!pkt) { |
1131
|
17 |
0 |
if (ldns_pkt_answerfrom(pkt)) |
1145
|
0 |
17 |
if(ldns_pkt_edns_data(pkt)) |