/Zephyr-Core-2.7.6/tests/net/socket/getaddrinfo/src/ |
D | main.c | 351 zassert_equal(saddr->sin6_addr.s6_addr[0], 0xFE, ""); in test_getaddrinfo_num_ipv6() 352 zassert_equal(saddr->sin6_addr.s6_addr[1], 0xDC, ""); in test_getaddrinfo_num_ipv6() 353 zassert_equal(saddr->sin6_addr.s6_addr[2], 0xBA, ""); in test_getaddrinfo_num_ipv6() 354 zassert_equal(saddr->sin6_addr.s6_addr[3], 0x98, ""); in test_getaddrinfo_num_ipv6() 355 zassert_equal(saddr->sin6_addr.s6_addr[4], 0x76, ""); in test_getaddrinfo_num_ipv6() 356 zassert_equal(saddr->sin6_addr.s6_addr[5], 0x54, ""); in test_getaddrinfo_num_ipv6() 357 zassert_equal(saddr->sin6_addr.s6_addr[6], 0x32, ""); in test_getaddrinfo_num_ipv6() 358 zassert_equal(saddr->sin6_addr.s6_addr[7], 0x10, ""); in test_getaddrinfo_num_ipv6() 359 zassert_equal(saddr->sin6_addr.s6_addr[8], 0xFE, ""); in test_getaddrinfo_num_ipv6() 360 zassert_equal(saddr->sin6_addr.s6_addr[9], 0xDC, ""); in test_getaddrinfo_num_ipv6() [all …]
|
/Zephyr-Core-2.7.6/subsys/net/ip/ |
D | 6lo.c | 137 return ((addr->s6_addr[1] == 0x02) && in net_6lo_maddr_8_bit_compressible() 141 (addr->s6_addr[14] == 0x00)); in net_6lo_maddr_8_bit_compressible() 148 (addr->s6_addr[12] == 0x00)); in net_6lo_maddr_32_bit_compressible() 155 (addr->s6_addr[10] == 0x00)); in net_6lo_maddr_48_bit_compressible() 244 !memcmp(ctx_6co[i].prefix.s6_addr, addr->s6_addr, 8)) { in get_6lo_context_by_addr() 384 memmove(inline_ptr, &ipv6->src.s6_addr[14], sizeof(uint16_t)); in compress_sa() 394 memmove(inline_ptr, &ipv6->src.s6_addr[8], 8U); in compress_sa() 404 memmove(inline_ptr, &ipv6->src.s6_addr[0], 16U); in set_sa_inline() 433 memmove(inline_ptr, &ipv6->src.s6_addr[14], sizeof(uint16_t)); in compress_sa_ctx() 443 memmove(inline_ptr, &ipv6->src.s6_addr[8], 8U); in compress_sa_ctx() [all …]
|
D | route.c | 288 net_ipv6_is_prefix(dst->s6_addr, in net_route_lookup() 289 route->addr.s6_addr, in net_route_lookup() 674 !net_ipv6_is_prefix(hdr->dst.s6_addr, in net_route_mcast_forward_packet() 675 route->group.s6_addr, in net_route_mcast_forward_packet() 712 if (skip && net_ipv6_is_prefix(skip->s6_addr, in net_route_mcast_foreach() 713 route->group.s6_addr, in net_route_mcast_foreach() 785 if (net_ipv6_is_prefix(group->s6_addr, in net_route_mcast_lookup() 786 route->group.s6_addr, in net_route_mcast_lookup()
|
D | net_if.c | 1399 addr->s6_addr, in net_if_ipv6_addr_lookup() 1400 ipv6->unicast[i].address.in6_addr.s6_addr, in net_if_ipv6_addr_lookup() 1440 addr->s6_addr, in net_if_ipv6_addr_lookup_by_iface() 1441 ipv6->unicast[i].address.in6_addr.s6_addr, in net_if_ipv6_addr_lookup_by_iface() 1943 maddr->s6_addr, in net_if_ipv6_maddr_lookup() 1944 ipv6->mcast[i].address.in6_addr.s6_addr, in net_if_ipv6_maddr_lookup() 2041 addr->s6_addr, in remove_prefix_addresses() 2042 ipv6->unicast[i].address.in6_addr.s6_addr, in remove_prefix_addresses() 2304 if (net_ipv6_is_prefix(ipv6->prefix[i].prefix.s6_addr, in net_if_ipv6_prefix_get() 2305 addr->s6_addr, in net_if_ipv6_prefix_get() [all …]
|
D | ipv6_mld.c | 67 net_ipv6_unspecified_address()->s6_addr, in mld_create()
|
D | utils.c | 432 addr->s6_addr[12 + i] = strtol(src, NULL, 10); in z_impl_net_addr_pton()
|
D | ipv6_nbr.c | 2257 (void)memset(context->prefix.s6_addr + context->context_len, 0, in handle_ra_6co()
|
/Zephyr-Core-2.7.6/include/net/ |
D | net_ip.h | 141 uint8_t s6_addr[16]; member 598 return addr->s6_addr[0] == 0xFF; in net_ipv6_is_addr_mcast() 783 return addr->s6_addr[0] == 0xFD; in net_ipv6_is_ula_addr() 927 return (addr->s6_addr[0] == 0xff) && (addr->s6_addr[1] == scope); in net_ipv6_is_addr_mcast_scope() 942 return (addr_1->s6_addr[0] == 0xff) && (addr_2->s6_addr[0] == 0xff) && in net_ipv6_is_same_mcast_scope() 943 (addr_1->s6_addr[1] == addr_2->s6_addr[1]); in net_ipv6_is_same_mcast_scope() 1111 dst->s6_addr[0] = 0xFF; in net_ipv6_addr_create_solicited_node() 1112 dst->s6_addr[1] = 0x02; in net_ipv6_addr_create_solicited_node() 1117 dst->s6_addr[10] = 0U; in net_ipv6_addr_create_solicited_node() 1118 dst->s6_addr[11] = 0x01; in net_ipv6_addr_create_solicited_node() [all …]
|
/Zephyr-Core-2.7.6/tests/net/route_mcast/src/ |
D | main.c | 375 nw_prefix_based_all_nodes.s6_addr[15] = 0x01; in test_route_mcast_route_add() 467 active_scenario.src.s6_addr[15] = 0x02; in test_route_mcast_scenario1() 471 active_scenario.mcast.s6_addr[15] = 0x01; in test_route_mcast_scenario1() 494 active_scenario.src.s6_addr[15] = 0x09; in test_route_mcast_scenario1() 529 active_scenario.src.s6_addr[15] = 0x08; in test_route_mcast_scenario2() 533 active_scenario.mcast.s6_addr[15] = 0x01; in test_route_mcast_scenario2() 553 active_scenario.src.s6_addr[15] = 0x08; in test_route_mcast_scenario2() 585 active_scenario.src.s6_addr[15] = 0x08; in test_route_mcast_scenario3() 589 active_scenario.mcast.s6_addr[15] = 0x01; in test_route_mcast_scenario3() 610 active_scenario.mcast.s6_addr[15] = 0x0F; in test_route_mcast_scenario3() [all …]
|
/Zephyr-Core-2.7.6/tests/net/socket/getnameinfo/src/ |
D | main.c | 64 saddr.sin6_addr.s6_addr[0] = 0xff; in test_getnameinfo_ipv6() 65 saddr.sin6_addr.s6_addr[1] = 0x55; in test_getnameinfo_ipv6() 66 saddr.sin6_addr.s6_addr[15] = 0x11; in test_getnameinfo_ipv6()
|
/Zephyr-Core-2.7.6/tests/net/ip-addr/src/ |
D | main.c | 299 zassert_false(tmp && memcmp(tmp, &addr6.s6_addr, in test_ipv6_addresses() 331 zassert_false(memcmp(out->s6_addr, &addr6_pref2.s6_addr, in test_ipv6_addresses() 344 zassert_false(memcmp(out->s6_addr, &any.s6_addr, in test_ipv6_addresses() 359 zassert_false(memcmp(out->s6_addr, &addr6.s6_addr, in test_ipv6_addresses() 583 zassert_false(memcmp(out->s6_addr, &lla.s6_addr, in test_ipv6_mesh_addresses() 593 zassert_false(memcmp(out->s6_addr, &ml_eid.s6_addr, in test_ipv6_mesh_addresses()
|
/Zephyr-Core-2.7.6/subsys/net/l2/ppp/ |
D | ipv6cp.c | 210 addr->s6_addr[0] = 0xfe; in setup_iid_address() 211 addr->s6_addr[1] = 0x80; in setup_iid_address() 214 memcpy(&addr->s6_addr[8], iid, PPP_INTERFACE_IDENTIFIER_LEN); in setup_iid_address()
|
/Zephyr-Core-2.7.6/tests/net/route/src/ |
D | main.c | 283 dest_addresses[i].s6_addr[14] = i + 1; in test_init() 284 dest_addresses[i].s6_addr[15] = sys_rand32_get(); in test_init()
|
/Zephyr-Core-2.7.6/tests/net/virtual/src/ |
D | main.c | 788 net_sin6(&dst_addr)->sin6_addr.s6_addr[15] = 2; in test_virtual_send_data_to_tunnel() 877 net_sin6(&dst_addr)->sin6_addr.s6_addr[15] = 1; in test_virtual_recv_data_from_tunnel() 878 net_sin6(&src_addr)->sin6_addr.s6_addr[15] = remote_ip; in test_virtual_recv_data_from_tunnel() 887 net_sin6(&inner_src)->sin6_addr.s6_addr[15] = 2; in test_virtual_recv_data_from_tunnel()
|
/Zephyr-Core-2.7.6/tests/net/ipv6/src/ |
D | main.c | 393 prefix1.s6_addr[8] = 0x80; in test_cmp_prefix() 399 prefix2.s6_addr[8] = 0xc0; in test_cmp_prefix() 405 (void)memset(&prefix2.s6_addr[8], 0xff, 8); in test_cmp_prefix() 471 dst_addr.s6_addr[15] += i; in test_add_max_neighbors()
|
/Zephyr-Core-2.7.6/drivers/wifi/simplelink/ |
D | simplelink_sockets.c | 335 z_sockaddr_in6->sin6_addr.s6_addr, in translate_z_to_sl_addrs() 376 memcpy(z_sockaddr_in6->sin6_addr.s6_addr, in translate_sl_to_z_addr() 378 sizeof(z_sockaddr_in6->sin6_addr.s6_addr)); in translate_sl_to_z_addr()
|
/Zephyr-Core-2.7.6/subsys/net/l2/openthread/ |
D | openthread_utils.c | 185 context, ipv6->unicast[i].address.in6_addr.s6_addr); in add_ipv6_addr_to_ot()
|
/Zephyr-Core-2.7.6/subsys/net/lib/dns/ |
D | resolve.c | 100 net_sin6(addr)->sin6_addr.s6_addr[15] == 0xfb) { in server_is_mdns() 123 net_sin6(addr)->sin6_addr.s6_addr[15] == 0x03) { in server_is_llmnr()
|
D | dns_sd.c | 787 r = add_aaaa_record(inst, DNS_SD_AAAA_TTL, host_offset, addr6->s6_addr, buf, offset, in dns_sd_handle_ptr_query()
|
/Zephyr-Core-2.7.6/tests/net/buf/src/ |
D | main.c | 37 #define s6_addr in6_u.u6_addr8 macro
|
/Zephyr-Core-2.7.6/subsys/net/l2/ethernet/ |
D | ethernet.c | 78 memcpy(mac_addr->addr + 2, &ipv6_addr->s6_addr[12], 4); in net_eth_ipv6_mcast_to_mac_addr()
|