Lines Matching +full:0 +full:x72

27  * Transaction ID: 0xda0f
30 static uint8_t query_ipv4[] = { 0xda, 0x0f, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00,
31 0x00, 0x00, 0x00, 0x00, 0x03, 0x77, 0x77, 0x77,
32 0x0d, 0x7a, 0x65, 0x70, 0x68, 0x79, 0x72, 0x70,
33 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x03, 0x6f,
34 0x72, 0x67, 0x00, 0x00, 0x01, 0x00, 0x01 };
43 0xda, 0x0f, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00,
44 0x00, 0x00, 0x00, 0x00, 0x06, 0x7a, 0x65, 0x70,
45 0x68, 0x79, 0x72, 0x05, 0x6c, 0x6f, 0x63, 0x61,
46 0x6c, 0x00, 0x00, 0x01, 0x00, 0x01,
51 static uint16_t tid1 = 0xda0f;
60 if (rc != 0) { in eval_query()
66 if (rc != 0) { in eval_query()
87 /* Authoritative Answer must be 0 for a Query */ in eval_query()
88 if (dns_header_aa(dns_buf) != 0) { in eval_query()
93 /* TrunCation is always 0 */ in eval_query()
94 if (dns_header_tc(dns_buf) != 0) { in eval_query()
105 /* Recursion Available is always 0 */ in eval_query()
106 if (dns_header_ra(dns_buf) != 0) { in eval_query()
111 /* Z is always 0 */ in eval_query()
112 if (dns_header_z(dns_buf) != 0) { in eval_query()
117 /* Response code must be 0 (no error) */ in eval_query()
129 /* Answer counter must be 0 */ in eval_query()
130 if (dns_header_ancount(dns_buf) != 0) { in eval_query()
135 /* Name server resource records counter must be 0 */ in eval_query()
136 if (dns_header_nscount(dns_buf) != 0) { in eval_query()
141 /* Additional records counter must be 0 */ in eval_query()
142 if (dns_header_arcount(dns_buf) != 0) { in eval_query()
167 if (memcmp(expected, dns_buf, dns_buf_len) != 0) { in eval_query()
247 if (dns_header_aa(resp->res) != 0) { in eval_response1()
252 /* TrunCation is always 0 */ in eval_response1()
253 if (dns_header_tc(resp->res) != 0) { in eval_response1()
270 /* Z is always 0 */ in eval_response1()
271 if (dns_header_z(resp->res) != 0) { in eval_response1()
276 /* Response code must be 0 (no error) */ in eval_response1()
294 /* Name server resource records counter must be 0 */ in eval_response1()
295 if (dns_header_nscount(resp->res) != 0) { in eval_response1()
300 /* Additional records counter must be 0 */ in eval_response1()
301 if (dns_header_arcount(resp->res) != 0) { in eval_response1()
307 if (rc != 0) { in eval_response1()
319 if (memcmp(qname, resp->res + offset, qname_len) != 0) { in eval_response1()
348 if (dns_unpack_answer(&msg, DNS_ANSWER_MIN_SIZE, &ttl, &answer_type) < 0) { in eval_response1()
355 /* 0xc0 and 0x0c are derived from RFC 1035 4.1.4 Message in eval_response1()
356 * compression. 0x0c is the DNS Header Size (fixed size) and in eval_response1()
357 * 0xc0 is the DNS pointer marker. in eval_response1()
359 if (resp->res[offset + 0] != 0xc0 || in eval_response1()
360 resp->res[offset + 1] != 0x0c) { in eval_response1()
406 if (memcmp(resp->res + offset, resp->rdata, resp->rdlen) != 0) { in eval_response1()
423 zassert_equal(rc, 0, "Query test failed for domain: "DNAME1); in ZTEST()
427 zassert_not_equal(rc, 0, "Query test with invalid domain name failed"); in ZTEST()
431 zassert_not_equal(rc, 0, "Query test for IPv4 with RR type AAAA failed"); in ZTEST()
435 zassert_not_equal(rc, 0, "Query test with invalid ID failed"); in ZTEST()
439 * Transaction ID: 0xb041
447 static uint8_t resp_ipv4[] = { 0xb0, 0x41, 0x81, 0x80, 0x00, 0x01, 0x00, 0x01,
448 0x00, 0x00, 0x00, 0x00, 0x03, 0x77, 0x77, 0x77,
449 0x0d, 0x7a, 0x65, 0x70, 0x68, 0x79, 0x72, 0x70,
450 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x03, 0x6f,
451 0x72, 0x67, 0x00, 0x00, 0x01, 0x00, 0x01, 0xc0,
452 0x0c, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x0b,
453 0xd4, 0x00, 0x04, 0x8c, 0xd3, 0xa9, 0x08 };
463 .tid = 0xb041, in ZTEST()
477 zassert_equal(rc, 0, in ZTEST()
484 zassert_equal(rc, 0, in ZTEST()
491 * Transaction ID: 0x2121
495 0x21, 0x21, 0x81, 0x80, 0x00, 0x01, 0x00, 0x01,
496 0x00, 0x00, 0x00, 0x00, 0x03, 0x77, 0x77, 0x77,
497 0x09, 0x77, 0x69, 0x72, 0x65, 0x73, 0x68, 0x61,
498 0x72, 0x6b, 0x03, 0x6f, 0x72, 0x67, 0x00, 0x00,
499 0x01, 0x00, 0x01, 0x01, 0x61, 0xc0, 0x0c, 0x00, 0x01, 0x00,
500 0x01, 0x00, 0x00, 0x02, 0x58, 0x00, 0x04, 0xae,
501 0x89, 0x2a, 0x41
514 .tid = 0x2121, in ZTEST()
527 zassert_equal(rc, 0, in ZTEST()
538 zassert_equal(rc, 0, "Query test failed for domain: " ZEPHYR_LOCAL); in ZTEST()
542 * Transaction ID: 0xf2b6
546 * Recursion Available: 0
551 0xf2, 0xb6, 0x80, 0x00, 0x00, 0x01, 0x00, 0x01,
552 0x00, 0x00, 0x00, 0x00, 0x06, 0x7a, 0x65, 0x70,
553 0x68, 0x79, 0x72, 0x05, 0x6c, 0x6f, 0x63, 0x61,
554 0x6c, 0x00, 0x00, 0x1c, 0x00, 0x01, 0x06, 0x7a,
555 0x65, 0x70, 0x68, 0x79, 0x72, 0x05, 0x6c, 0x6f,
556 0x63, 0x61, 0x6c, 0x00, 0x00, 0x1c, 0x00, 0x01,
557 0x00, 0x00, 0x00, 0x1e, 0x00, 0x10, 0xfe, 0x80,
558 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
559 0x5e, 0xff, 0xfe, 0x00, 0x53, 0x37,
563 0xfe, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
564 0x02, 0x00, 0x5e, 0xff, 0xfe, 0x00, 0x53, 0x37
573 .tid = 0xf2b6, in ZTEST()
577 .ra = 0, in ZTEST()
578 .rd = 0, in ZTEST()
585 zassert_equal(rc, 0, in ZTEST()
592 0xb0, 0x41, 0x81, 0x80, 0x00, 0x01, 0x00, 0x01,
593 0x00, 0x00, 0x00, 0x00,
596 0x03, 0x77, 0x77, 0x77, 0x0d, 0x7a, 0x65, 0x70,
597 0x68, 0x79, 0x72, 0x70, 0x72, 0x6f, 0x6a, 0x65,
598 0x63, 0x74, 0x03, 0x6f, 0x72, 0x67, 0x00,
601 0x00, 0x01,
604 0x00, 0x01,
611 0xb0, 0x41, 0x81, 0x80, 0x00, 0x01, 0x00, 0x01,
612 0x00, 0x00, 0x00, 0x00,
615 0x03, 0x77, 0x77, 0x77, 0x0d, 0x7a, 0x65, 0x70,
616 0x68, 0x79, 0x72, 0x70, 0x72, 0x6f, 0x6a, 0x65,
617 0x63, 0x74, 0x03, 0x6f, 0x72, 0x67, 0x00,
624 0xb0, 0x41, 0x81, 0x80, 0x00, 0x01, 0x00, 0x01,
625 0x00, 0x00, 0x00, 0x00,
628 0x03, 0x77, 0x77, 0x77, 0x0d, 0x7a, 0x65, 0x70,
629 0x68, 0x79, 0x72, 0x70, 0x72, 0x6f, 0x6a, 0x65,
630 0x63, 0x74, 0x03, 0x6f, 0x72, 0x67, 0x00,
633 0x00, 0x01,
636 0x00, 0x01,
639 0xc0, 0x1c,
642 0x00, 0x01,
645 0x00, 0x01,
648 0x00, 0x00, 0x0b, 0xd4,
653 0xb0, 0x41, 0x81, 0x80, 0x00, 0x01, 0x00, 0x01,
654 0x00, 0x00, 0x00, 0x00,
657 0x03, 0x77, 0x77, 0x77, 0x0d, 0x7a, 0x65, 0x70,
658 0x68, 0x79, 0x72, 0x70, 0x72, 0x6f, 0x6a, 0x65,
659 0x63, 0x74, 0x03, 0x6f, 0x72, 0x67, 0x00,
662 0x00, 0x01,
665 0x00, 0x01,
668 0xc0, 0x1c,
671 0x00, 0x01,
674 0x00, 0x01,
677 0x00, 0x00, 0x0b, 0xd4,
682 0xb0, 0x41, 0x81, 0x80, 0x00, 0x01, 0x00, 0x01,
683 0x00, 0x00, 0x00, 0x00,
686 0x03, 0x77, 0x77, 0x77, 0x0d, 0x7a, 0x65, 0x70,
687 0x68, 0x79, 0x72, 0x70, 0x72, 0x6f, 0x6a, 0x65,
688 0x63, 0x74, 0x03, 0x6f, 0x72, 0x67, 0x00,
691 0x00, 0x01,
694 0x00, 0x01,
697 0xc0, 0x1c,
700 0x00, 0x01,
703 0x00, 0x01,
706 0x00, 0x00, 0x0b, 0xd4,
709 0x00, 0x04,
714 /* Id (0) */
715 0x00, 0x00,
717 0x80, 0x01,
719 0x00, 0x01,
721 0x00, 0x00,
723 0x00, 0x00,
725 0x00, 0x00,
732 0xb0, 0x41, 0x81, 0x80, 0x00, 0x01, 0x00, 0x01,
733 0x00, 0x00, 0x00, 0x00,
736 0x03, 0x77, 0x77, 0x77, 0x0d, 0x7a, 0x65, 0x70,
737 0x68, 0x79, 0x72, 0x70, 0x72, 0x6f, 0x6a, 0x65,
738 0x63, 0x74, 0x03, 0x6f, 0x72, 0x67, 0x00,
741 0x00, 0x01,
744 0x00, 0x01,
747 0xc0, 0x1c,
750 0x00, 0x01,
753 0x00, 0x01,
756 0x00, 0x00, 0x0b, 0xd4,
759 0x00, 0x04,
762 0x8c, 0xd3, 0xa9, 0x08
767 0xb0, 0x41, 0x81, 0x80, 0x00, 0x01, 0x00, 0x01,
768 0x00, 0x00, 0x00, 0x00,
771 0x03, 0x77, 0x77, 0x77, 0x0d, 0x7a, 0x65, 0x70,
772 0x68, 0x79, 0x72, 0x70, 0x72, 0x6f, 0x6a, 0x65,
773 0x63, 0x74, 0x03, 0x6f, 0x72, 0x67, 0x00,
776 0x00, 0x01,
779 0x00, 0x01,
782 0x03, 0x77, 0x77, 0x77, 0x0d, 0x7a, 0x65, 0x70,
783 0x68, 0x79, 0x72, 0x70, 0x72, 0x6f, 0x6a, 0x65,
784 0x63, 0x74, 0x03, 0x6f, 0x72, 0x67, 0x00,
787 0x00, 0x01,
790 0x00, 0x01,
793 0x00, 0x00, 0x0b, 0xd4,
796 0x00, 0x04,
799 0x8c, 0xd3, 0xa9, 0x08
804 0xb0, 0x41, 0x81, 0x80, 0x00, 0x01, 0x00, 0x02,
805 0x00, 0x00, 0x00, 0x00,
808 0x03, 0x77, 0x77, 0x77, 0x0d, 0x7a, 0x65, 0x70,
809 0x68, 0x79, 0x72, 0x70, 0x72, 0x6f, 0x6a, 0x65,
810 0x63, 0x74, 0x03, 0x6f, 0x72, 0x67, 0x00,
813 0x00, 0x01,
816 0x00, 0x01,
819 0x03, 0x77, 0x77, 0x77, 0x0d, 0x7a, 0x65, 0x70,
820 0x68, 0x79, 0x72, 0x70, 0x72, 0x6f, 0x6a, 0x65,
821 0x63, 0x74, 0x03, 0x6f, 0x72, 0x67, 0x00,
824 0x00, 0x01,
827 0x00, 0x01,
830 0x00, 0x00, 0x0b, 0xd4,
833 0x00, 0x04,
836 0x8c, 0xd3, 0xa9, 0x08,
839 0x03, 0x77, 0x77, 0x77, 0x0d, 0x7a, 0x65, 0x70,
840 0x68, 0x79, 0x72, 0x70, 0x72, 0x6f, 0x6a, 0x65,
841 0x63, 0x74, 0x03, 0x6f, 0x72, 0x67, 0x00,
844 0x00, 0x01,
847 0x00, 0x01,
850 0x00, 0x00, 0x0b, 0xd4,
853 0x00, 0x04,
856 0x8c, 0xd3, 0xa9, 0x09
861 0xb0, 0x41, 0x81, 0x80, 0x00, 0x01, 0x00, 0x02,
862 0x00, 0x00, 0x00, 0x00,
865 0x03, 0x77, 0x77, 0x77, 0x0d, 0x7a, 0x65, 0x70,
866 0x68, 0x79, 0x72, 0x70, 0x72, 0x6f, 0x6a, 0x65,
867 0x63, 0x74, 0x03, 0x6f, 0x72, 0x67, 0x00,
870 0x00, 0x01,
873 0x00, 0x01,
876 0xc0, 0x1c,
879 0x00, 0x01,
882 0x00, 0x01,
885 0x00, 0x00, 0x0b, 0xd4,
888 0x00, 0x04,
891 0x8c, 0xd3, 0xa9, 0x08,
894 0x03, 0x77, 0x77, 0x77, 0x0d, 0x7a, 0x65, 0x70,
895 0x68, 0x79, 0x72, 0x70, 0x72, 0x6f, 0x6a, 0x65,
896 0x63, 0x74, 0x03, 0x6f, 0x72, 0x67, 0x00,
899 0x00, 0x01,
902 0x00, 0x01,
905 0x00, 0x00, 0x0b, 0xd4,
908 0x00, 0x04,
911 0x8c, 0xd3, 0xa9, 0x09
916 0x74, 0xe1, 0x81, 0x80, 0x00, 0x01, 0x00, 0x02,
917 0x00, 0x00, 0x00, 0x00,
920 0x0e, 0x77, 0x65, 0x73, 0x74, 0x75, 0x73, 0x32,
921 0x2d, 0x70, 0x72, 0x6f, 0x64, 0x2d, 0x32, 0x0d,
922 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,
923 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x05, 0x74, 0x65,
924 0x61, 0x6d, 0x73, 0x09, 0x6d, 0x69, 0x63, 0x72,
925 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x03, 0x63, 0x6f,
926 0x6d, 0x00,
929 0x00, 0x01,
932 0x00, 0x01,
935 0xc0, 0x0c,
938 0x00, 0x05,
941 0x00, 0x01,
944 0x00, 0x00, 0x00, 0x04,
947 0x00, 0x26,
950 0x11, 0x77, 0x65, 0x73, 0x74, 0x75, 0x73, 0x32,
951 0x63, 0x6e, 0x73, 0x2d, 0x70, 0x72, 0x6f, 0x64,
952 0x2d, 0x32, 0x0e, 0x74, 0x72, 0x61, 0x66, 0x66,
953 0x69, 0x63, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65,
954 0x72, 0x03, 0x6e, 0x65, 0x74, 0x00,
957 0xc0, 0x4e,
960 0x00, 0x05,
963 0x00, 0x01,
966 0x00, 0x00, 0x00, 0x04,
969 0x00, 0x2e,
972 0x14, 0x77, 0x65, 0x73, 0x74, 0x75, 0x73, 0x32,
973 0x63, 0x6e, 0x73, 0x2d, 0x70, 0x72, 0x6f, 0x64,
974 0x2d, 0x32, 0x2d, 0x31, 0x36, 0x07, 0x77, 0x65,
975 0x73, 0x74, 0x75, 0x73, 0x32, 0x08, 0x63, 0x6c,
976 0x6f, 0x75, 0x64, 0x61, 0x70, 0x70, 0x05, 0x61,
977 0x7a, 0x75, 0x72, 0x65, 0xc0, 0x39,
982 0x74, 0xe1, 0x81, 0x80, 0x00, 0x01, 0x00, 0x03,
983 0x00, 0x00, 0x00, 0x00,
986 0x0e, 0x77, 0x65, 0x73, 0x74, 0x75, 0x73, 0x32,
987 0x2d, 0x70, 0x72, 0x6f, 0x64, 0x2d, 0x32, 0x0d,
988 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,
989 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x05, 0x74, 0x65,
990 0x61, 0x6d, 0x73, 0x09, 0x6d, 0x69, 0x63, 0x72,
991 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x03, 0x63, 0x6f,
992 0x6d, 0x00,
995 0x00, 0x01,
998 0x00, 0x01,
1001 0xc0, 0x0c,
1004 0x00, 0x05,
1007 0x00, 0x01,
1010 0x00, 0x00, 0x00, 0x04,
1013 0x00, 0x26,
1016 0x11, 0x77, 0x65, 0x73, 0x74, 0x75, 0x73, 0x32,
1017 0x63, 0x6e, 0x73, 0x2d, 0x70, 0x72, 0x6f, 0x64,
1018 0x2d, 0x32, 0x0e, 0x74, 0x72, 0x61, 0x66, 0x66,
1019 0x69, 0x63, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65,
1020 0x72, 0x03, 0x6e, 0x65, 0x74, 0x00,
1023 0xc0, 0x4e,
1026 0x00, 0x05,
1029 0x00, 0x01,
1032 0x00, 0x00, 0x00, 0x04,
1035 0x00, 0x2e,
1038 0x14, 0x77, 0x65, 0x73, 0x74, 0x75, 0x73, 0x32,
1039 0x63, 0x6e, 0x73, 0x2d, 0x70, 0x72, 0x6f, 0x64,
1040 0x2d, 0x32, 0x2d, 0x31, 0x36, 0x07, 0x77, 0x65,
1041 0x73, 0x74, 0x75, 0x73, 0x32, 0x08, 0x63, 0x6c,
1042 0x6f, 0x75, 0x64, 0x61, 0x70, 0x70, 0x05, 0x61,
1043 0x7a, 0x75, 0x72, 0x65, 0xc0, 0x39,
1046 0xc0, 0x80,
1049 0x00, 0x01,
1052 0x00, 0x01,
1055 0x00, 0x00, 0x00, 0x04,
1058 0x00, 0x04,
1061 0x34, 0x72, 0x94, 0x90
1097 0x03, 0x77, 0x77, 0x77, 0x0d, 0x7a, 0x65, 0x70, in run_dns_malformed_response()
1098 0x68, 0x79, 0x72, 0x70, 0x72, 0x6f, 0x6a, 0x65, in run_dns_malformed_response()
1099 0x63, 0x74, 0x03, 0x6f, 0x72, 0x67, 0x00, in run_dns_malformed_response()
1101 0x00, 0x01 in run_dns_malformed_response()
1103 struct dns_msg_t dns_msg = { 0 }; in run_dns_malformed_response()
1104 uint16_t dns_id = 0; in run_dns_malformed_response()
1106 uint16_t query_hash = 0; in run_dns_malformed_response()
1118 setup_dns_context(&dns_ctx, 0, dns_id, query, sizeof(query), in run_dns_malformed_response()
1132 struct dns_msg_t dns_msg = { 0 }; in run_dns_valid_response()
1133 uint16_t dns_id = 0; in run_dns_valid_response()
1135 uint16_t query_hash = 0; in run_dns_valid_response()
1153 0, NULL);
1161 0x0e, 0x77, 0x65, 0x73, 0x74, 0x75, 0x73, 0x32, in run_dns_valid_cname_response()
1162 0x2d, 0x70, 0x72, 0x6f, 0x64, 0x2d, 0x32, 0x0d, in run_dns_valid_cname_response()
1163 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, in run_dns_valid_cname_response()
1164 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x05, 0x74, 0x65, in run_dns_valid_cname_response()
1165 0x61, 0x6d, 0x73, 0x09, 0x6d, 0x69, 0x63, 0x72, in run_dns_valid_cname_response()
1166 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x03, 0x63, 0x6f, in run_dns_valid_cname_response()
1167 0x6d, 0x00, in run_dns_valid_cname_response()
1170 0x00, 0x01, in run_dns_valid_cname_response()
1172 struct dns_msg_t dns_msg = { 0 }; in run_dns_valid_cname_response()
1174 uint16_t dns_id = 0; in run_dns_valid_cname_response()
1176 uint16_t query_hash = 0; in run_dns_valid_cname_response()
1187 setup_dns_context(&dns_ctx, 0, dns_id, query, sizeof(query), in run_dns_valid_cname_response()
1235 struct dns_msg_t dns_msg = { 0 }; in ZTEST()
1237 uint16_t dns_id = 0; in ZTEST()
1239 uint16_t query_hash = 0; in ZTEST()
1253 struct dns_msg_t dns_msg = { 0 }; in ZTEST()
1255 uint16_t dns_id = 0; in ZTEST()
1257 uint16_t query_hash = 0; in ZTEST()
1271 0x01, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
1272 0x00, 0x00, 0x01, 0x00, 0x01,
1277 struct dns_msg_t dns_msg = { 0 }; in ZTEST()
1286 ret = dns_unpack_answer(&dns_msg, 0, &ttl, &type); in ZTEST()