/Zephyr-latest/tests/net/socket/poll/src/ |
D | main.c | 42 struct sockaddr_in6 s_addr; in ZTEST() local 50 prepare_sock_udp_v6(MY_IPV6_ADDR, SERVER_PORT, &s_sock, &s_addr); in ZTEST() 52 prepare_sock_tcp_v6(MY_IPV6_ADDR, SERVER_PORT, &s_sock_tcp, &s_addr); in ZTEST() 54 res = zsock_bind(s_sock, (struct sockaddr *)&s_addr, sizeof(s_addr)); in ZTEST() 57 res = zsock_connect(c_sock, (struct sockaddr *)&s_addr, sizeof(s_addr)); in ZTEST() 121 res = zsock_connect(c_sock, (const struct sockaddr *)&s_addr, in ZTEST() 122 sizeof(s_addr)); in ZTEST() 138 res = zsock_bind(s_sock_tcp, (struct sockaddr *)&s_addr, sizeof(s_addr)); in ZTEST() 143 res = zsock_connect(c_sock_tcp, (const struct sockaddr *)&s_addr, in ZTEST() 144 sizeof(s_addr)); in ZTEST() [all …]
|
/Zephyr-latest/tests/net/socket/service/src/ |
D | main.c | 68 struct sockaddr_in6 s_addr; in run_test_service() local 77 prepare_sock_udp_v6(MY_IPV6_ADDR, SERVER_PORT, &s_sock_udp, &s_addr); in run_test_service() 79 prepare_sock_tcp_v6(MY_IPV6_ADDR, SERVER_PORT, &s_sock_tcp, &s_addr); in run_test_service() 96 ret = bind(s_sock_udp, (struct sockaddr *)&s_addr, sizeof(s_addr)); in run_test_service() 99 ret = connect(c_sock_udp, (struct sockaddr *)&s_addr, sizeof(s_addr)); in run_test_service() 114 ret = bind(s_sock_tcp, (struct sockaddr *)&s_addr, sizeof(s_addr)); in run_test_service() 119 ret = connect(c_sock_tcp, (const struct sockaddr *)&s_addr, in run_test_service() 120 sizeof(s_addr)); in run_test_service()
|
/Zephyr-latest/tests/posix/net/src/ |
D | inet_ntoa.c | 16 in.s_addr = htonl(0x7f000001); in ZTEST() 19 in.s_addr = htonl(0); in ZTEST() 22 in.s_addr = htonl(0xffffffff); in ZTEST()
|
/Zephyr-latest/tests/net/socket/select/src/ |
D | main.c | 74 struct sockaddr_in6 s_addr; in ZTEST_USER() local 82 prepare_sock_udp_v6(MY_IPV6_ADDR, SERVER_PORT, &s_sock, &s_addr); in ZTEST_USER() 84 res = zsock_bind(s_sock, (struct sockaddr *)&s_addr, sizeof(s_addr)); in ZTEST_USER() 87 res = zsock_connect(c_sock, (struct sockaddr *)&s_addr, sizeof(s_addr)); in ZTEST_USER()
|
/Zephyr-latest/tests/net/dhcpv4/server/src/ |
D | main.c | 378 reserved->s_addr = lease->addr.s_addr; in get_reserved_cb() 586 zassert_equal(reserved->s_addr, lease->addr.s_addr, in reserved_address_cb() 631 zassert_equal(first_addr.s_addr, test_ctx.assigned_ip.s_addr, in ZTEST() 642 zassert_not_equal(first_addr.s_addr, test_ctx.assigned_ip.s_addr, in ZTEST() 778 zassert_equal(allocated->s_addr, lease->addr.s_addr, in allocated_address_cb() 863 zassert_equal(declined->s_addr, lease->addr.s_addr, in declined_address_cb() 922 zassert_equal(oldest_addr.s_addr, test_ctx.assigned_ip.s_addr, in ZTEST() 941 zassert_equal(test_ctx.declined_ip.s_addr, lease->addr.s_addr, in after_probe_address_cb() 946 zassert_equal(test_ctx.assigned_ip.s_addr, lease->addr.s_addr, in after_probe_address_cb() 977 zassert_not_equal(test_ctx.assigned_ip.s_addr, in ZTEST() [all …]
|
/Zephyr-latest/subsys/net/lib/config/ |
D | init_clock_sntp.c | 30 sntp_addr.sin_addr.s_addr = iface->config.dhcpv4.ntp_addr.s_addr; in sntp_init_helper()
|
/Zephyr-latest/tests/net/ip-addr/src/ |
D | main.c | 410 zassert_equal(out->s_addr, lladdr4_1.s_addr, in ZTEST() 448 zassert_equal(out->s_addr, lladdr4_1.s_addr, in ZTEST() 460 zassert_equal(out->s_addr, lladdr4_2.s_addr, in ZTEST() 526 zassert_equal(out->s_addr, addr4.s_addr, in ZTEST() 538 zassert_equal(out->s_addr, lladdr4.s_addr, in ZTEST() 550 zassert_equal(out->s_addr, addr4.s_addr, in ZTEST() 562 zassert_equal(out->s_addr, addr4.s_addr, in ZTEST()
|
/Zephyr-latest/subsys/net/l2/ppp/ |
D | ipcp.c | 36 net_pkt_write_u8(pkt, 1 + 1 + sizeof(addr->s_addr)); in ipcp_add_address() 37 return net_pkt_write(pkt, &addr->s_addr, sizeof(addr->s_addr)); in ipcp_add_address() 164 if (data->addr.s_addr == INADDR_ANY) { in ipcp_dns_address_parse() 190 if (data->addr.s_addr == INADDR_ANY) { in ipcp_ip_address_parse() 332 if (!dns1.sin_addr.s_addr) { in ipcp_set_dns_servers() 336 if (!dns2.sin_addr.s_addr) { in ipcp_set_dns_servers() 363 if (!ctx->ipcp.my_options.address.s_addr) { in ipcp_config_info_nack() 431 if (ctx->ipcp.my_options.address.s_addr) { in ipcp_down()
|
/Zephyr-latest/samples/net/sockets/tcp/src/ |
D | main.c | 56 sin.sin_addr.s_addr = htonl(INADDR_ANY); in udp()
|
/Zephyr-latest/arch/xtensa/core/ |
D | mpu.c | 161 uintptr_t s_addr, e_addr; in check_addr_in_mpu_entries() local 175 s_addr = xtensa_mpu_entry_start_address_get(&entries[idx]); in check_addr_in_mpu_entries() 178 if ((addr >= s_addr) && (addr < e_addr)) { in check_addr_in_mpu_entries() 185 s_addr = xtensa_mpu_entry_start_address_get(&entries[idx]); in check_addr_in_mpu_entries() 186 if (addr >= s_addr) { in check_addr_in_mpu_entries() 194 if (addr == s_addr) { in check_addr_in_mpu_entries()
|
/Zephyr-latest/include/zephyr/net/ |
D | net_ip.h | 160 uint32_t s_addr; /**< In big endian, for POSIX compatibility. */ member 825 return UNALIGNED_GET(&addr->s_addr) == 0; in net_ipv4_is_addr_unspecified() 837 return (ntohl(UNALIGNED_GET(&addr->s_addr)) & 0xF0000000) == 0xE0000000; in net_ipv4_is_addr_mcast() 849 return (ntohl(UNALIGNED_GET(&addr->s_addr)) & 0xFFFF0000) == 0xA9FE0000; in net_ipv4_is_ll_addr() 865 masked_24 = ntohl(UNALIGNED_GET(&addr->s_addr)) & 0xFFFFFF00; in net_ipv4_is_private_addr() 926 return UNALIGNED_GET(&addr1->s_addr) == UNALIGNED_GET(&addr2->s_addr); in net_ipv4_addr_cmp()
|
/Zephyr-latest/subsys/net/lib/ptp/ |
D | transport.c | 201 net_sin(&m_addr)->sin_addr.s_addr = mcast_addr.s_addr; in transport_send() 330 *addr = ip->s_addr; in ptp_transport_protocol_addr()
|
/Zephyr-latest/tests/net/socket/getnameinfo/src/ |
D | main.c | 34 saddr.sin_addr.s_addr = htonl(0x7f000001); in ZTEST_USER()
|
/Zephyr-latest/samples/net/secure_mqtt_sensor_actuator/src/ |
D | mqtt_client.c | 459 broker4->sin_addr.s_addr = ((struct sockaddr_in *)result->ai_addr)->sin_addr.s_addr; in app_mqtt_init() 465 inet_ntop(AF_INET, &broker4->sin_addr.s_addr, broker_ip, sizeof(broker_ip)); in app_mqtt_init()
|
/Zephyr-latest/subsys/net/ip/ |
D | igmp.c | 165 if (net_pkt_write(pkt, &mcast[i].sources[j].in_addr.s_addr, in igmp_v3_create() 166 sizeof(mcast[i].sources[j].in_addr.s_addr))) { in igmp_v3_create() 615 net_ipaddr_copy(&maddr->sources[i].in_addr.s_addr, 616 ¶m->source_list[i].s_addr);
|
D | net_if.c | 3473 subnet = UNALIGNED_GET(&addr->s_addr) & in net_if_ipv4_addr_mask_cmp() 3474 ipv4->unicast[i].netmask.s_addr; in net_if_ipv4_addr_mask_cmp() 3476 if ((ipv4->unicast[i].ipv4.address.in_addr.s_addr & in net_if_ipv4_addr_mask_cmp() 3477 ipv4->unicast[i].netmask.s_addr) == subnet) { in net_if_ipv4_addr_mask_cmp() 3510 bcast.s_addr = ipv4->unicast[i].ipv4.address.in_addr.s_addr | in ipv4_is_broadcast_address() 3511 ~ipv4->unicast[i].netmask.s_addr; in ipv4_is_broadcast_address() 3513 if (bcast.s_addr == UNALIGNED_GET(&addr->s_addr)) { in ipv4_is_broadcast_address() 3604 subnet.s_addr = ipv4->unicast[i].ipv4.address.in_addr.s_addr & in net_if_ipv4_get_best_match() 3605 ipv4->unicast[i].netmask.s_addr; in net_if_ipv4_get_best_match() 3809 ipv4->unicast[i].ipv4.address.in_addr.s_addr) { in net_if_ipv4_addr_lookup() [all …]
|
/Zephyr-latest/samples/net/sockets/dumb_http_server/src/ |
D | socket_dumb_http.c | 69 bind_addr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
|
/Zephyr-latest/tests/posix/headers/src/ |
D | netinet_in_h.c | 27 zexpect_not_equal(-1, offsetof(struct in_addr, s_addr)); in ZTEST()
|
/Zephyr-latest/tests/net/lib/http_server/crime/src/ |
D | main.c | 83 ret = zsock_inet_pton(AF_INET, MY_IPV4_ADDR, &sa.sin_addr.s_addr); in test_crime()
|
/Zephyr-latest/samples/subsys/modbus/tcp_gateway/src/ |
D | main.c | 110 bind_addr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
|
/Zephyr-latest/samples/net/mdns_responder/src/ |
D | service.c | 70 net_sin(&server_addr)->sin_addr.s_addr = htonl(INADDR_ANY); in service()
|
/Zephyr-latest/drivers/wifi/simplelink/ |
D | simplelink_sockets.c | 353 sl_addr_in->sin_addr.s_addr = in translate_z_to_sl_addrs() 354 z_sockaddr_in->sin_addr.s_addr; in translate_z_to_sl_addrs() 390 z_sockaddr_in->sin_addr.s_addr = in translate_sl_to_z_addr() 391 sl_addr_in->sin_addr.s_addr; in translate_sl_to_z_addr() 1028 net_sin(ai_addr)->sin_addr.s_addr = sl_addr->sin_addr.s_addr; in set_addr_info()
|
/Zephyr-latest/tests/net/socket/tls_ext/src/ |
D | main.c | 275 sa.sin_addr.s_addr = INADDR_ANY; in test_common() 354 r = inet_pton(AF_INET, MY_IPV4_ADDR, &sa.sin_addr.s_addr); in test_common()
|
/Zephyr-latest/tests/boards/espressif/ethernet/src/ |
D | main.c | 98 zassert_not_equal(gw_addr_4.s_addr, 0, "Gateway address is not set"); in ZTEST()
|
/Zephyr-latest/scripts/coredump/gdbstubs/ |
D | gdbstub.py | 160 s_addr = int(b'0x' + str_addr, 16) 163 barray = self.get_memory(s_addr, length)
|