Home
last modified time | relevance | path

Searched refs:s_addr (Results 1 – 25 of 33) sorted by relevance

12

/Zephyr-Core-3.5.0/tests/net/socket/poll/src/
Dmain.c42 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 = bind(s_sock, (struct sockaddr *)&s_addr, sizeof(s_addr)); in ZTEST()
57 res = connect(c_sock, (struct sockaddr *)&s_addr, sizeof(s_addr)); in ZTEST()
122 res = connect(c_sock, (const struct sockaddr *)&s_addr, in ZTEST()
123 sizeof(s_addr)); in ZTEST()
139 res = bind(s_sock_tcp, (struct sockaddr *)&s_addr, sizeof(s_addr)); in ZTEST()
144 res = connect(c_sock_tcp, (const struct sockaddr *)&s_addr, in ZTEST()
145 sizeof(s_addr)); in ZTEST()
[all …]
/Zephyr-Core-3.5.0/tests/net/socket/select/src/
Dmain.c74 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 = bind(s_sock, (struct sockaddr *)&s_addr, sizeof(s_addr)); in ZTEST_USER()
87 res = connect(c_sock, (struct sockaddr *)&s_addr, sizeof(s_addr)); in ZTEST_USER()
/Zephyr-Core-3.5.0/subsys/net/l2/ppp/
Dipcp.c36 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-Core-3.5.0/tests/net/ip-addr/src/
Dmain.c428 zassert_equal(out->s_addr, addr4.s_addr, in ZTEST()
440 zassert_equal(out->s_addr, lladdr4.s_addr, in ZTEST()
452 zassert_equal(out->s_addr, addr4.s_addr, in ZTEST()
464 zassert_equal(out->s_addr, addr4.s_addr, in ZTEST()
/Zephyr-Core-3.5.0/samples/net/sockets/tcp/src/
Dmain.c56 sin.sin_addr.s_addr = htonl(INADDR_ANY); in udp()
/Zephyr-Core-3.5.0/tests/posix/headers/src/
Dnetinet_in_h.c27 zassert_not_equal(-1, offsetof(struct in_addr, s_addr)); in ZTEST()
/Zephyr-Core-3.5.0/scripts/coredump/gdbstubs/
Dgdbstub.py133 s_addr = int(b'0x' + str_addr, 16)
138 addr = s_addr
/Zephyr-Core-3.5.0/samples/net/sockets/echo/src/
Dsocket_echo.c41 bind_addr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
/Zephyr-Core-3.5.0/include/zephyr/net/
Dnet_ip.h156 uint32_t s_addr; /* In big endian, for POSIX compatibility. */ member
712 return UNALIGNED_GET(&addr->s_addr) == 0; in net_ipv4_is_addr_unspecified()
724 return (ntohl(UNALIGNED_GET(&addr->s_addr)) & 0xF0000000) == 0xE0000000; in net_ipv4_is_addr_mcast()
736 return (ntohl(UNALIGNED_GET(&addr->s_addr)) & 0xFFFF0000) == 0xA9FE0000; in net_ipv4_is_ll_addr()
785 return UNALIGNED_GET(&addr1->s_addr) == UNALIGNED_GET(&addr2->s_addr); in net_ipv4_addr_cmp()
/Zephyr-Core-3.5.0/tests/net/socket/getnameinfo/src/
Dmain.c34 saddr.sin_addr.s_addr = htonl(0x7f000001); in ZTEST_USER()
/Zephyr-Core-3.5.0/samples/net/sockets/dumb_http_server/src/
Dsocket_dumb_http.c54 bind_addr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
/Zephyr-Core-3.5.0/samples/net/mdns_responder/src/
Dservice.c70 net_sin(&server_addr)->sin_addr.s_addr = htonl(INADDR_ANY); in service()
/Zephyr-Core-3.5.0/samples/subsys/modbus/tcp_gateway/src/
Dmain.c110 bind_addr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
/Zephyr-Core-3.5.0/drivers/wifi/simplelink/
Dsimplelink_sockets.c353 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-Core-3.5.0/tests/net/socket/tls_ext/src/
Dmain.c275 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-Core-3.5.0/samples/net/sockets/echo_async/src/
Dsocket_echo.c118 .s_addr = htonl(INADDR_ANY), in main()
/Zephyr-Core-3.5.0/samples/net/sockets/echo_async_select/src/
Dsocket_echo_select.c104 .s_addr = htonl(INADDR_ANY),
/Zephyr-Core-3.5.0/subsys/net/ip/
Dconnection.c307 if (net_sin(remote_addr)->sin_addr.s_addr) { in net_conn_register()
334 if (net_sin(local_addr)->sin_addr.s_addr) { in net_conn_register()
476 if (net_sin(addr)->sin_addr.s_addr) { in conn_addr_cmp()
Dnet_context.c588 addr4.sin_addr.s_addr = INADDR_ANY; in bind_default()
784 } else if (addr4->sin_addr.s_addr == INADDR_ANY) { in net_context_bind()
1201 if (addr4->sin_addr.s_addr) { in net_context_connect()
1750 if (!addr4->sin_addr.s_addr) { in context_sendto()
1761 if (net_sin(&context->remote)->sin_addr.s_addr == 0U && in context_sendto()
/Zephyr-Core-3.5.0/samples/subsys/modbus/tcp_server/src/
Dmain.c288 bind_addr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
/Zephyr-Core-3.5.0/tests/net/lib/dns_sd/src/
Dmain.c520 .s_addr = htonl(IP_ADDR(177, 5, 240, 13)), in ZTEST()
588 .s_addr = htonl(IP_ADDR(177, 5, 240, 13)), in ZTEST()
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/transport/src/
Dsmp_udp.c191 addr4.sin_addr.s_addr = htonl(INADDR_ANY); in create_socket()
/Zephyr-Core-3.5.0/drivers/wifi/esp_at/
Desp.c341 if (!addrs[i].sin_addr.s_addr) { in esp_dns_work()
372 addrs[i].sin_addr.s_addr = 0; in MODEM_CMD_DEFINE()
383 addrs[i].sin_addr.s_addr = 0; in MODEM_CMD_DEFINE()
/Zephyr-Core-3.5.0/drivers/usb/device/
Dusb_dc_native_posix_adapt.c289 srv.sin_addr.s_addr = htonl(INADDR_ANY); in usbip_start()
/Zephyr-Core-3.5.0/subsys/net/lib/sockets/
Dgetaddrinfo.c157 addr->sin_addr.s_addr = INADDR_ANY; in getaddrinfo_null_host()

12