Lines Matching +full:0 +full:x00
43 #define NET_IPV6_PE_FILTER_PREFIX_COUNT 0
49 static struct in6_addr my_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
50 0, 0, 0, 0, 0, 0, 0, 0x1 } } };
51 static struct in6_addr peer_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
52 0, 0, 0, 0, 0, 0, 0, 0x2 } } };
53 static struct in6_addr multicast_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
54 0, 0, 0, 0, 0, 0, 0, 0x1 } } };
55 static struct in6_addr all_nodes_mcast = { { { 0xff, 0x02, 0, 0, 0, 0, 0, 0,
56 0, 0, 0, 0, 0, 0, 0, 0x1 } } };
60 0xfe, 0x80, 0, 0, 0, 0, 0, 0, 0x2, 0x60,
61 0x97, 0xff, 0xfe, 0x07, 0x69, 0xea
63 static struct in6_addr test_ra_prefix = { { { 0x3f, 0xfe, 0x05, 0x07, 0, 0, 0, 1,
64 0, 0, 0, 0, 0, 0, 0, 0 } } };
66 0x3f, 0xfe, 0x05, 0x07, 0x00, 0x00, 0x00, 0x01,
67 0x02, 0x00, 0x5e, 0xff, 0xfe, 0x00, 0x53, 0x00
73 0x60, 0x00, 0x00, 0x00, 0x00, 0x20, 0x3A, 0xFF,
74 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x00,
75 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
76 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x00,
77 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
79 0x87, 0x00, 0x7B, 0x9C, 0x60, 0x00, 0x00, 0x00,
81 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x00,
82 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
84 0x01, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00, 0xD8,
86 0x02, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00, 0xD7,
88 0x01, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00, 0xD6,
90 0x05, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00, 0xD5,
96 0x60, 0x00, 0x00, 0x00, 0x00, 0x18, 0x3A, 0xFF,
97 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
98 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
99 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
100 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
102 0x87, 0x00, 0x7B, 0x9C, 0x60, 0x00, 0x00, 0x00,
104 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x00,
105 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
111 0x60, 0x00, 0x00, 0x00, 0x00, 0x70, 0x3a, 0xff,
112 0xfe, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
113 0x02, 0x60, 0x97, 0xff, 0xfe, 0x07, 0x69, 0xea,
114 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
115 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
117 0x86, 0x00, 0xbf, 0x01, 0x40, 0x00, 0x07, 0x08,
118 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01,
120 0x01, 0x01, 0x00, 0x60, 0x97, 0x07, 0x69, 0xea,
122 0x05, 0x01, 0x00, 0x00, 0x00, 0x00, 0x05, 0xdc,
124 0x03, 0x04, 0x40, 0xc0, 0x00, 0x00, 0xFF, 0xFF,
125 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00,
126 0x3f, 0xfe, 0x05, 0x07, 0x00, 0x00, 0x00, 0x01,
127 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
129 0x18, 0x03, 0x30, 0x08, 0xff, 0xff, 0xff, 0xff,
130 0x20, 0x01, 0x0d, 0xb0, 0x0f, 0xff, 0x00, 0x00,
131 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
133 0x19, 0x03, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff,
134 0x20, 0x01, 0x0d, 0xb8, 0x00, 0x00, 0x00, 0x00,
135 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
141 0x60, 0x00, 0x00, 0x00, 0x00, 0x36, 0x00, 0x3f, /* `....6.? */
142 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x00,
143 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
144 0x20, 0x01, 0x0D, 0xB8, 0x00, 0x00, 0x00, 0x00,
145 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
147 0x11, 0x00,
149 0x63, 0x04, 0x80, 0x1e, 0x01, 0x00, /* ..c..... */
151 0xaa, 0xdc, 0xbf, 0xd7, 0x00, 0x2e, 0xa2, 0x55, /* ......M. */
153 0x10, 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, /* ........ */
154 0x00, 0x00, 0x01, 0x00, 0x00, 0x02, 0x00, 0x02, /* ........ */
155 0x00, 0x00, 0x03, 0x00, 0x00, 0x02, 0x00, 0x03, /* ........ */
156 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0xc9, /* ........ */
157 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, /* ...... */
191 return 0; in net_test_dev_init()
198 if (context->mac_addr[2] == 0x00) { in net_test_get_mac()
200 context->mac_addr[0] = 0x00; in net_test_get_mac()
201 context->mac_addr[1] = 0x00; in net_test_get_mac()
202 context->mac_addr[2] = 0x5E; in net_test_get_mac()
203 context->mac_addr[3] = 0x00; in net_test_get_mac()
204 context->mac_addr[4] = 0x53; in net_test_get_mac()
238 memset(&hdr.src, 0, sizeof(struct net_eth_addr)); in prepare_ra_message()
256 uint8_t na_flags[] = { flags, 0, 0, 0 }; in inject_na_message()
257 uint8_t na_tlla_opt[] = { 0x02, 0x01, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa }; in inject_na_message()
266 memset(&hdr.src, 0xaa, sizeof(struct net_eth_addr)); in inject_na_message()
276 zassert_ok(net_icmpv6_create(pkt, NET_ICMPV6_NA, 0)); in inject_na_message()
354 if (dad_time[0] == 0U) { in tester_send()
355 dad_time[0] = k_uptime_get_32(); in tester_send()
356 } else if (dad_time[1] == 0U) { in tester_send()
358 } else if (dad_time[2] == 0U) { in tester_send()
367 net_pkt_clone(pkt, K_NO_WAIT)) < 0) { in tester_send()
372 return 0; in tester_send()
377 return 0; in tester_send()
427 return 0; in dummy_send()
455 llstorage.addr[0] = 0x01; in add_neighbor()
456 llstorage.addr[1] = 0x02; in add_neighbor()
457 llstorage.addr[2] = 0x33; in add_neighbor()
458 llstorage.addr[3] = 0x44; in add_neighbor()
459 llstorage.addr[4] = 0x05; in add_neighbor()
460 llstorage.addr[5] = 0x06; in add_neighbor()
477 llstorage.addr[0] = 0x01; in rm_neighbor()
478 llstorage.addr[1] = 0x02; in rm_neighbor()
479 llstorage.addr[2] = 0x33; in rm_neighbor()
480 llstorage.addr[3] = 0x44; in rm_neighbor()
481 llstorage.addr[4] = 0x05; in rm_neighbor()
482 llstorage.addr[5] = 0x06; in rm_neighbor()
496 struct in6_addr dst_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in add_max_neighbors()
497 0, 0, 0, 0, 0, 0, 0, 0x3 } } }; in add_max_neighbors()
503 llstorage.addr[0] = 0x01; in add_max_neighbors()
504 llstorage.addr[1] = 0x02; in add_max_neighbors()
505 llstorage.addr[2] = 0x33; in add_max_neighbors()
506 llstorage.addr[3] = 0x44; in add_max_neighbors()
507 llstorage.addr[4] = 0x05; in add_max_neighbors()
508 llstorage.addr[5] = 0x07; in add_max_neighbors()
514 for (i = 0U; i < CONFIG_NET_IPV6_MAX_NEIGHBORS + 1; i++) { in add_max_neighbors()
527 struct in6_addr dst_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in rm_max_neighbors()
528 0, 0, 0, 0, 0, 0, 0, 0x3 } } }; in rm_max_neighbors()
533 llstorage.addr[0] = 0x01; in rm_max_neighbors()
534 llstorage.addr[1] = 0x02; in rm_max_neighbors()
535 llstorage.addr[2] = 0x33; in rm_max_neighbors()
536 llstorage.addr[3] = 0x44; in rm_max_neighbors()
537 llstorage.addr[4] = 0x05; in rm_max_neighbors()
538 llstorage.addr[5] = 0x07; in rm_max_neighbors()
544 for (i = 0U; i < CONFIG_NET_IPV6_MAX_NEIGHBORS + 1; i++) { in rm_max_neighbors()
595 zassert_false(net_if_config_ipv6_get(iface, &ipv6) < 0, in ipv6_setup()
598 for (i = 0; i < NET_IF_MAX_IPV6_ADDR; i++) { in ipv6_setup()
618 k_sem_init(&wait_data, 0, UINT_MAX); in ipv6_setup()
649 net_ipv6_addr_create(&multicast_addr, 0xff02, 0, 0, 0, 0, 0, 0, 0x0001); in ipv6_teardown()
662 struct in6_addr prefix1 = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in ZTEST()
663 0, 0, 0, 0, 0, 0, 0, 0x1 } } }; in ZTEST()
664 struct in6_addr prefix2 = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in ZTEST()
665 0, 0, 0, 0, 0, 0, 0, 0x2 } } }; in ZTEST()
674 prefix1.s6_addr[8] = 0x80; in ZTEST()
680 prefix2.s6_addr[8] = 0xc0; in ZTEST()
686 (void)memset(&prefix2.s6_addr[8], 0xff, 8); in ZTEST()
712 AF_UNSPEC, 0, K_FOREVER); in ZTEST()
719 zassert_false((net_recv_data(iface, pkt) < 0), in ZTEST()
735 AF_UNSPEC, 0, K_FOREVER); in ZTEST()
742 zassert_false((net_recv_data(iface, pkt) < 0), in ZTEST()
761 zassert_equal(0, res_bytes, "Reserved bytes must be zeroed"); in expect_nd_ns()
788 k_sem_init(&ctx.wait_ns, 0, 1); in ZTEST()
819 struct in6_addr addr = { { { 0x20, 1, 0x0d, 0xb8, 42, 0, 0, 0, in ZTEST()
820 0, 0, 0, 0, 0, 0, 0, 0 } } }; in ZTEST()
840 struct in6_addr prefix = { { { 0x20, 1, 0x0d, 0xb8, 43, 0, 0, 0, in ZTEST()
841 0, 0, 0, 0, 0, 0, 0, 0 } } }; in ZTEST()
842 uint32_t lifetime = 0xfffffffe; in ZTEST()
878 zassert_equal(ret, 0, "RS sending failed (%d)", ret); in rs_message()
885 struct in6_addr route_prefix = { { { 0x20, 0x01, 0x0d, 0xb0, 0x0f, 0xff } } }; in ra_message()
889 .sin6_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0x00, 0x00, 0x00, 0x00, in ra_message()
890 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 } } }, in ra_message()
932 dns_server = (struct sockaddr_in6 *)&ctx->servers[0].dns_server; in ra_message()
963 zassert_equal(0, res_bytes, "Reserved bytes must be zeroed"); in expect_dad_ns()
970 &all_nodes_mcast, &target, 0); in expect_dad_ns()
998 k_sem_init(&ctx.wait_dad, 0, 1); in verify_rs_on_iface_event()
1039 AF_UNSPEC, 0, K_FOREVER); in ZTEST()
1046 zassert_false(net_recv_data(iface, pkt) < 0, in ZTEST()
1053 0x60, 0x00, 0x00, 0x00, 0x00, 0x78, 0x00, 0x40,
1054 0xfe, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1055 0x08, 0xc0, 0xde, 0xff, 0xfe, 0x9b, 0xb4, 0x47,
1056 0x20, 0x01, 0x0d, 0xb8, 0x00, 0x00, 0x00, 0x00,
1057 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
1059 0x11, 0x08,
1061 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1062 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1063 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1064 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1065 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1066 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1067 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1068 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1069 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1071 0x4e, 0x20, 0x10, 0x92, 0x00, 0x30, 0xa1, 0xc5,
1073 0x30, 0x26, 0x02, 0x01, 0x00, 0x04, 0x06, 0x70,
1074 0x75, 0x62, 0x6c, 0x69, 0x63, 0xa0, 0x19, 0x02,
1075 0x01, 0x00, 0x02, 0x01, 0x00, 0x02, 0x01, 0x00,
1076 0x30, 0x0e, 0x30, 0x0c, 0x06, 0x08, 0x2b, 0x06,
1077 0x01, 0x02, 0x01, 0x01, 0x05, 0x00, 0x05, 0x00 };
1090 AF_UNSPEC, 0, K_FOREVER); in ZTEST()
1098 zassert_false(net_recv_data(iface, pkt) < 0, in ZTEST()
1109 0x60, 0x00, 0x00, 0x00, 0x00, 0x98, 0x00, 0x40,
1110 0xfe, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1111 0x08, 0xc0, 0xde, 0xff, 0xfe, 0x9b, 0xb4, 0x47,
1112 0x20, 0x01, 0x0d, 0xb8, 0x00, 0x00, 0x00, 0x00,
1113 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
1115 0x11, 0x0c,
1117 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1118 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1119 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1120 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1121 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1122 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1123 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1124 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1125 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1126 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1127 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1128 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1129 0x01, 0x04, 0x00, 0x00, 0x00, 0x00,
1131 0x4e, 0x20, 0x10, 0x92, 0x00, 0x30, 0xa1, 0xc5,
1133 0x30, 0x26, 0x02, 0x01, 0x00, 0x04, 0x06, 0x70,
1134 0x75, 0x62, 0x6c, 0x69, 0x63, 0xa0, 0x19, 0x02,
1135 0x01, 0x00, 0x02, 0x01, 0x00, 0x02, 0x01, 0x00,
1136 0x30, 0x0e, 0x30, 0x0c, 0x06, 0x08, 0x2b, 0x06,
1137 0x01, 0x02, 0x01, 0x01, 0x05, 0x00, 0x05, 0x00 };
1150 AF_UNSPEC, 0, K_FOREVER); in ZTEST()
1158 zassert_false(net_recv_data(iface, pkt) < 0, in ZTEST()
1169 0x60, 0x00, 0x00, 0x00, 0x03, 0xc8, 0x00, 0x40,
1170 0xfe, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1171 0x08, 0xc0, 0xde, 0xff, 0xfe, 0x9b, 0xb4, 0x47,
1172 0x20, 0x01, 0x0d, 0xb8, 0x00, 0x00, 0x00, 0x00,
1173 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
1175 0x11, 0x72,
1177 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1178 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1179 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1180 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1181 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1182 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1183 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1184 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1185 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1186 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1187 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1188 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1189 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1190 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1191 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1192 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1193 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1194 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1195 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1196 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1197 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1198 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1199 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1200 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1201 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1202 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1203 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1204 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1205 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1206 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1207 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1208 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1209 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1210 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1211 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1212 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1213 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1214 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1215 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1216 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1217 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1218 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1219 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1220 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1221 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1222 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1223 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1224 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1225 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1226 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1227 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1228 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1229 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1230 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1231 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1232 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1233 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1234 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1235 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1236 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1237 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1238 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1239 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1240 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1241 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1242 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1243 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1244 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1245 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1246 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1247 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1248 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1249 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1250 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1251 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1252 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1253 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1254 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1255 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1256 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1257 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1258 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1259 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1260 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1261 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1262 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1263 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1264 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1265 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1266 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1267 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1268 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1269 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1270 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1271 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1272 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1273 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1274 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1275 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1276 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1277 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1278 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1279 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1280 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1281 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1282 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1283 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1284 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1285 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1286 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1287 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1288 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1289 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1290 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1291 0x01, 0x04, 0x00, 0x00, 0x00, 0x00,
1293 0x4e, 0x20, 0x10, 0x92, 0x00, 0x30, 0xa1, 0xc5,
1295 0x30, 0x26, 0x02, 0x01, 0x00, 0x04, 0x06, 0x70,
1296 0x75, 0x62, 0x6c, 0x69, 0x63, 0xa0, 0x19, 0x02,
1297 0x01, 0x00, 0x02, 0x01, 0x00, 0x02, 0x01, 0x00,
1298 0x30, 0x0e, 0x30, 0x0c, 0x06, 0x08, 0x2b, 0x06,
1299 0x01, 0x02, 0x01, 0x01, 0x05, 0x00, 0x05, 0x00
1313 AF_UNSPEC, 0, K_FOREVER); in ZTEST()
1320 zassert_false(net_recv_data(iface, pkt) < 0, in ZTEST()
1335 struct in6_addr addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in ZTEST()
1336 0, 0, 0, 0, 0, 0, 0x20, 0x1 } } }; in ZTEST()
1338 uint32_t vlifetime = 0xffff; in ZTEST()
1357 zassert_equal(ifaddr->lifetime.wrap_counter, 0, in ZTEST()
1382 ifaddr->lifetime.wrap_counter = 0; in ZTEST()
1387 zassert_equal(ifaddr->lifetime.timer_timeout, 0, in ZTEST()
1389 ifaddr->lifetime.timer_timeout, 0); in ZTEST()
1390 zassert_equal(ifaddr->lifetime.wrap_counter, 0, in ZTEST()
1417 zassert_false(ret < 0, "Cannot send NA 1"); in ZTEST()
1426 zassert_true(memcmp(ll->addr, ll_iface->addr, ll->len) != 0, in ZTEST()
1436 zassert_false(ret < 0, "Cannot send NA 2"); in ZTEST()
1443 zassert_true(memcmp(ll->addr, ll_iface->addr, ll->len) != 0, in ZTEST()
1452 struct in6_addr addr1 = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in ZTEST()
1453 0, 0, 0, 0, 0, 0, 0x99, 0x1 } } }; in ZTEST()
1454 struct in6_addr addr2 = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in ZTEST()
1455 0, 0, 0, 0, 0, 0, 0x99, 0x2 } } }; in ZTEST()
1456 struct in6_addr addr3 = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in ZTEST()
1457 0, 0, 0, 0, 0, 0, 0x99, 0x3 } } }; in ZTEST()
1462 dad_time[0] = dad_time[1] = dad_time[2] = 0U; in ZTEST()
1464 ifaddr = net_if_ipv6_addr_add(iface, &addr1, NET_ADDR_AUTOCONF, 0xffff); in ZTEST()
1469 ifaddr = net_if_ipv6_addr_add(iface, &addr2, NET_ADDR_AUTOCONF, 0xffff); in ZTEST()
1474 ifaddr = net_if_ipv6_addr_add(iface, &addr3, NET_ADDR_AUTOCONF, 0xffff); in ZTEST()
1480 zassert_true((dad_time[0] != 0U) && (dad_time[1] != 0U) && in ZTEST()
1481 (dad_time[2] != 0U), "Did not get DAD reply"); in ZTEST()
1503 k_sem_init(&ctx.wait_dad, 0, 1); in verify_dad_on_static_addr_on_iface_event()
1544 k_sem_init(&ctx.wait_dad, 0, 1); in verify_dad_on_ll_addr_on_iface_event()
1572 struct in6_addr addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in ZTEST()
1573 0, 0, 0, 0, 0, 0, 0x99, 0x4 } } }; in ZTEST()
1584 k_sem_init(&ctx.wait_dad, 0, 1); in ZTEST()
1588 ifaddr = net_if_ipv6_addr_add(TEST_NET_IF, &addr, NET_ADDR_AUTOCONF, 0xffff); in ZTEST()
1620 zassert_true(0, "exiting"); in setup_ipv6_udp()
1625 zassert_true(0, "exiting"); in setup_ipv6_udp()
1630 zassert_true(0, "exiting"); in setup_ipv6_udp()
1669 struct in6_addr localaddr = { { { 0, 0, 0, 0, 0, 0, 0, 0, in ZTEST()
1670 0, 0, 0, 0, 0, 0, 0, 0x1 } } }; in ZTEST()
1671 struct in6_addr addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in ZTEST()
1672 0, 0, 0, 0, 0, 0, 0, 0x10 } } }; in ZTEST()
1682 struct in6_addr localaddr = { { { 0, 0, 0, 0, 0, 0, 0, 0, in ZTEST()
1683 0, 0, 0, 0, 0, 0, 0, 0x1 } } }; in ZTEST()
1684 struct in6_addr addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in ZTEST()
1685 0, 0, 0, 0, 0, 0, 0, 0x10 } } }; in ZTEST()
1695 struct in6_addr mcast_iface = { { { 0xff, 0x01, 0, 0, 0, 0, 0, 0, in ZTEST()
1696 0, 0, 0, 0, 0, 0, 0, 0 } } }; in ZTEST()
1697 struct in6_addr addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in ZTEST()
1698 0, 0, 0, 0, 0, 0, 0, 0x10 } } }; in ZTEST()
1708 struct in6_addr mcast_zero = { { { 0xff, 0x00, 0, 0, 0, 0, 0, 0, in ZTEST()
1709 0, 0, 0, 0, 0, 0, 0, 0 } } }; in ZTEST()
1710 struct in6_addr addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in ZTEST()
1711 0, 0, 0, 0, 0, 0, 0, 0x10 } } }; in ZTEST()
1721 struct in6_addr mcast_site = { { { 0xff, 0x05, 0, 0, 0, 0, 0, 0, in ZTEST()
1722 0, 0, 0, 0, 0, 0, 0, 0 } } }; in ZTEST()
1723 struct in6_addr addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in ZTEST()
1724 0, 0, 0, 0, 0, 0, 0, 0x10 } } }; in ZTEST()
1737 zassert_equal(ret, 0, in net_ctx_create()
1746 .sin6_addr = { { { 0 } } }, in net_ctx_bind_mcast()
1754 zassert_equal(ret, 0, "Context bind test failed (%d)", ret); in net_ctx_bind_mcast()
1759 zassert_true(net_context_listen(ctx, 0), in net_ctx_listen()
1789 zassert_equal(ret, 0, "Context recv IPv6 UDP failed"); in net_ctx_recv()
1797 zassert_equal(ret, 0, "Cannot join IPv6 multicast group"); in join_group()
1805 zassert_equal(ret, 0, "Cannot leave IPv6 multicast group"); in leave_group()
1810 struct in6_addr mcast_all_dhcp = { { { 0xff, 0x05, 0, 0, 0, 0, 0, 0, in ZTEST()
1811 0, 0, 0, 0x01, 0, 0, 0, 0x03 } } }; in ZTEST()
1812 struct in6_addr addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in ZTEST()
1813 0, 0, 0, 0, 0, 0, 0, 0x10 } } }; in ZTEST()
1839 struct in6_addr mcast_org = { { { 0xff, 0x08, 0, 0, 0, 0, 0, 0, in ZTEST()
1840 0, 0, 0, 0, 0, 0, 0, 0 } } }; in ZTEST()
1841 struct in6_addr addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in ZTEST()
1842 0, 0, 0, 0, 0, 0, 0, 0x10 } } }; in ZTEST()
1852 struct in6_addr mcast_iface = { { { 0xff, 0x01, 0, 0, 0, 0, 0, 0, in ZTEST()
1853 0, 0, 0, 0, 0, 0, 0, 0 } } }; in ZTEST()
1854 struct in6_addr addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in ZTEST()
1855 0, 0, 0, 0, 0, 0, 0, 0x10 } } }; in ZTEST()
1874 zassert_equal(ret, 0, in ZTEST()
1892 { { 0xff, 0x02, 0, 0, 0, 0, 0, 0, 0x01, 0x02, 0x03, 0x04, 0x05, in ZTEST()
1893 0x06, 0x07, 0x08 } } in ZTEST()
1896 struct in6_addr addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, 0, 0, in ZTEST()
1897 0, 0, 0, 0, 0, 0x10 } } }; in ZTEST()
1922 { { 0xff, 0x02, 0, 0, 0, 0, 0, 0, 0x42, 0x42, 0x42, 0x42, 0x42, in ZTEST()
1923 0x42, 0x42, 0x42 } } in ZTEST()
1926 struct in6_addr addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, 0, 0, in ZTEST()
1927 0, 0, 0, 0, 0, 0x10 } } }; in ZTEST()
1968 struct in6_addr mcast_iface2 = { { { 0xff, 0x02, 0, 0, 0, 0, 0, 0, 0x01, in ZTEST()
1969 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, in ZTEST()
1970 0x08 } } }; in ZTEST()
1972 struct in6_addr addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, 0, 0, in ZTEST()
1973 0, 0, 0, 0, 0, 0x10 } } }; in ZTEST()
2129 struct in6_addr addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in ZTEST()
2130 0, 0, 0, 0, 0, 0, 0x99, 0x10 } } }; in ZTEST()
2134 dad_time[0] = 0; in ZTEST()
2138 ifaddr = net_if_ipv6_addr_add(iface, &addr, NET_ADDR_AUTOCONF, 0xffff); in ZTEST()
2144 zassert_equal(dad_time[0], 0, "Received ND message when not expected"); in ZTEST()
2209 struct in6_addr prefix = { { { 0x3f, 0xfe, 0x05, 0x07, 0, 0, 0, 1, in get_pe_addresses()
2210 0, 0, 0, 0, 0, 0, 0, 0 } } }; in get_pe_addresses()
2243 struct in6_addr prefix = { { { 0x3f, 0xfe, 0x05, 0x07, 0, 0, 0, 1, in ZTEST()
2244 0, 0, 0, 0, 0, 0, 0, 0 } } }; in ZTEST()
2273 struct in6_addr prefix1 = { { { 0x3f, 0xfe, 0x05, 0x07, 0, 0, 0, 1, in ZTEST()
2274 0, 0, 0, 0, 0, 0, 0, 0 } } }; in ZTEST()
2275 struct in6_addr prefix2 = { { { 0x3f, 0xfe, 0x04, 0x07, 0, 0, 0, 1, in ZTEST()
2276 0, 0, 0, 0, 0, 0, 0, 0 } } }; in ZTEST()
2277 struct in6_addr prefix3 = { { { 0x3f, 0xfe, 0x03, 0x07, 0, 0, 0, 1, in ZTEST()
2278 0, 0, 0, 0, 0, 0, 0, 0 } } }; in ZTEST()
2283 if (!IS_ENABLED(CONFIG_NET_IPV6_PE) || NET_IPV6_PE_FILTER_PREFIX_COUNT == 0) { in ZTEST()
2289 zassert_equal(ret, 0, "Filter cannot be added (%d)", ret); in ZTEST()
2292 zassert_equal(ret, 0, "Filter cannot be added (%d)", ret); in ZTEST()
2295 zassert_true(ret < 0, "Filter could be added"); in ZTEST()
2299 zassert_equal(ret, 0, "Filter cannot be deleted (%d)", ret); in ZTEST()
2302 zassert_equal(ret, 0, "Filter cannot be deleted (%d)", ret); in ZTEST()
2305 zassert_true(ret < 0, "Filter found (%d)", ret); in ZTEST()
2309 zassert_equal(ret, 0, "Filter cannot be added (%d)", ret); in ZTEST()
2322 zassert_equal(ret, 0, "Filter cannot be deleted (%d)", ret); in ZTEST()
2325 zassert_equal(ret, 0, "Filter cannot be added (%d)", ret); in ZTEST()
2338 zassert_equal(ret, 0, "Filter cannot be deleted (%d)", ret); in ZTEST()
2342 zassert_equal(ret, 0, "Filter cannot be added (%d)", ret); in ZTEST()
2357 struct in6_addr dst_addr = { { { 0x3f, 0xfe, 0x05, 0x07, 0, 0, 0, 1, in ZTEST()
2358 0, 0, 2, 3, 4, 5, 6, 7 } } }; in ZTEST()