/third_party/toybox/toys/pending/ |
D | tftp.c | 83 ((struct sockaddr_in *)server)->sin_family = AF_INET; 84 ((struct sockaddr_in *)server)->sin_addr.s_addr = 85 ((struct sockaddr_in *)&TT.inaddr)->sin_addr.s_addr; 86 ((struct sockaddr_in *)server)->sin_port = htons(port); 231 *port = ((struct sockaddr_in *)&from)->sin_port; in read_ack() 232 ((struct sockaddr_in *)server)->sin_port = in read_ack() 233 ((struct sockaddr_in *)&from)->sin_port; in read_ack() 235 if (((struct sockaddr_in *)server)->sin_addr.s_addr != in read_ack() 236 ((struct sockaddr_in *)&from)->sin_addr.s_addr) { in read_ack() 240 if (*port != ((struct sockaddr_in *)server)->sin_port) { in read_ack() [all …]
|
D | traceroute.c | 120 ((struct sockaddr_in *)&dest)->sin_port = TT.port + seq; in send_probe4() 137 sizeof(struct sockaddr_in)); in send_probe4() 295 if (memcmp(&((struct sockaddr_in *)&last_addr)->sin_addr, in do_trace() 296 &((struct sockaddr_in *)&from)->sin_addr, in do_trace() 301 sizeof(struct sockaddr_in), host, NI_MAXHOST, NULL, 0, 0)) in do_trace() 304 ((struct sockaddr_in *)&from)->sin_addr)); in do_trace() 307 ((struct sockaddr_in *)&from)->sin_addr)); in do_trace() 315 rcv_len, inet_ntoa(((struct sockaddr_in *)&from)->sin_addr), in do_trace() 470 if (!memcmp(&((struct sockaddr_in *)&from)->sin_addr, in do_trace() 471 &((struct sockaddr_in *)&dest)->sin_addr, sizeof(struct in_addr)) in do_trace() [all …]
|
D | route.c | 77 static int get_hostname(char *ipstr, struct sockaddr_in *sockin) in get_hostname() 207 unsigned int addr_mask = (((struct sockaddr_in *)&((rt)->rt_genmask))->sin_addr.s_addr); in get_next_params() 211 get_hostname(*netmask, (struct sockaddr_in *) &sock); in get_next_params() 216 if (!get_hostname(argv[1], (struct sockaddr_in *) &rt->rt_gateway)) in get_next_params() 243 unsigned int addr_mask = (((struct sockaddr_in *)&((rt)->rt_genmask))->sin_addr.s_addr); in verify_netmask() 244 …unsigned int router_addr = ~(unsigned int)(((struct sockaddr_in *)&((rt)->rt_dst))->sin_addr.s_add… in verify_netmask() 251 addr_mask = ((struct sockaddr_in *) &rt->rt_dst)->sin_addr.s_addr; in verify_netmask() 276 (((struct sockaddr_in *)&rt.rt_genmask)->sin_addr.s_addr) in setroute() 291 (((struct sockaddr_in *)&((rt).rt_genmask))->sin_addr.s_addr) = INVALID_ADDR; in setroute()
|
/third_party/libuv/test/ |
D | test-tcp-bind-error.c | 46 struct sockaddr_in addr; in TEST_IMPL() 81 struct sockaddr_in addr; in TEST_IMPL() 114 struct sockaddr_in addr; in TEST_IMPL() 139 struct sockaddr_in addr; in TEST_IMPL() 164 struct sockaddr_in* garbage_addr; in TEST_IMPL() 168 garbage_addr = (struct sockaddr_in*) &garbage; in TEST_IMPL() 188 struct sockaddr_in addr1; in TEST_IMPL() 189 struct sockaddr_in addr2; in TEST_IMPL() 215 struct sockaddr_in addr; in TEST_IMPL() 232 struct sockaddr_in addr; in TEST_IMPL() [all …]
|
D | test-getsockname.c | 81 struct sockaddr_in check_addr = *(struct sockaddr_in*) addr; in check_sockname() 82 struct sockaddr_in compare_addr; in check_sockname() 170 struct sockaddr_in addr; in tcp_listener() 212 struct sockaddr_in server_addr; in tcp_connector() 233 connect_port = ntohs(((struct sockaddr_in*) &sockname)->sin_port); in tcp_connector() 272 struct sockaddr_in addr; in udp_listener() 306 struct sockaddr_in server_addr; in udp_sender()
|
D | test-tcp-create-socket-early.c | 61 struct sockaddr_in addr; in tcp_listener() 78 struct sockaddr_in server_addr; in tcp_connector() 95 struct sockaddr_in addr; in TEST_IMPL() 96 struct sockaddr_in sockname; in TEST_IMPL() 137 struct sockaddr_in addr; in TEST_IMPL()
|
/third_party/lwip/src/core/distributed_net/ |
D | distributed_net_core.c | 51 struct sockaddr_in addr_in = {0}; in distributed_net_connect() 100 struct sockaddr_in sin; 121 struct sockaddr_in addr_in = {0}; in distributed_net_sendto() 166 struct sockaddr_in addr_in = {0}; in distributed_net_sendmsg() 224 if (!IS_LOCAL_UDP_SERVER_ADDR((struct sockaddr_in *)(&addr_from))) { in distributed_net_recvfrom() 246 if (*from_len >= sizeof(struct sockaddr_in) - SIN_ZERO_LEN) { in distributed_net_recvfrom() 247 struct sockaddr_in *temp_addr = (struct sockaddr_in *)from; in distributed_net_recvfrom() 249 if (*from_len > sizeof(struct sockaddr_in)) { in distributed_net_recvfrom() 250 *from_len = sizeof(struct sockaddr_in); in distributed_net_recvfrom()
|
/third_party/musl/libc-test/src/functionalext/supplement/network/ |
D | accept4.c | 50 struct sockaddr_in srvAddr = {0}; in ServerTaskOne() 67 struct sockaddr_in clnAddr = {0}; in ServerTaskOne() 91 struct sockaddr_in srvAddr = {0}; in ServerTaskTwo() 108 struct sockaddr_in clnAddr = {0}; in ServerTaskTwo() 132 struct sockaddr_in srvAddr = {0}; in ServerTaskThree() 149 struct sockaddr_in clnAddr = {0}; in ServerTaskThree() 173 struct sockaddr_in srvAddr = {0}; in ServerTaskFive() 190 struct sockaddr_in clnAddr = {0}; in ServerTaskFive() 213 struct sockaddr_in srvAddr = {0}; in ServerTaskSix() 228 struct sockaddr_in clnAddr = {0}; in ServerTaskSix() [all …]
|
D | send.c | 45 struct sockaddr_in srvAddr = {0}; in SampleServerTask() 62 struct sockaddr_in clnAddr = {0}; in SampleServerTask() 77 struct sockaddr_in srvAddr = {0}; in SampleClientTask() 103 struct sockaddr_in srvAddr = {0}; in SampleServerNullTask() 120 struct sockaddr_in clnAddr = {0}; in SampleServerNullTask() 131 struct sockaddr_in srvAddr = {0}; in SampleClientNullTask()
|
D | getpeername.c | 52 struct sockaddr_in srvAddr = {0}; in SampleServerTask() 69 struct sockaddr_in clnAddr = {0}; in SampleServerTask() 77 strcpy(recordAddr, inet_ntoa(((struct sockaddr_in *)&addr)->sin_addr)); in SampleServerTask() 89 struct sockaddr_in srvAddr = {0}; in SampleClientTask()
|
/third_party/ltp/testcases/network/lib6/ |
D | getaddrinfo_01.c | 52 size_t exp_addrlen = (family == AF_INET) ? sizeof(struct sockaddr_in) : in verify_res() 68 struct sockaddr_in *psin; in verify_res() 70 psin = (struct sockaddr_in *)p->ai_addr; in verify_res() 177 struct sockaddr_in *psin = (struct sockaddr_in *)p->ai_addr; in test_loopback() 191 struct sockaddr_in *psin = (struct sockaddr_in *)p->ai_addr; in test_passive() 205 struct sockaddr_in *psin = (struct sockaddr_in *)p->ai_addr; in test_passive_no_host()
|
/third_party/node/src/ |
D | node_sockaddr.cc | 48 reinterpret_cast<sockaddr_in*>(addr)) == 0; in ToSockAddr() 79 const sockaddr_in* ipv4 = in operator ()() 80 reinterpret_cast<const sockaddr_in*>(addr.raw()); in operator ()() 120 const sockaddr_in* one_in = in is_match_ipv4() 121 reinterpret_cast<const sockaddr_in*>(one.data()); in is_match_ipv4() 122 const sockaddr_in* two_in = in is_match_ipv4() 123 reinterpret_cast<const sockaddr_in*>(two.data()); in is_match_ipv4() 140 const sockaddr_in* check_ipv4 = in is_match_ipv4_ipv6() 141 reinterpret_cast<const sockaddr_in*>(ipv4.data()); in is_match_ipv4_ipv6() 157 const sockaddr_in* one_in = in compare_ipv4() [all …]
|
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet6/ |
D | sctp6_var.h | 45 extern void in6_sin6_2_sin(struct sockaddr_in *, struct sockaddr_in6 *); 47 extern void in6_sin_2_v4mapsin6(const struct sockaddr_in *, struct sockaddr_in6 *); 74 extern void in6_sin_2_v4mapsin6(struct sockaddr_in *, struct sockaddr_in6 *); 75 extern void in6_sin6_2_sin(struct sockaddr_in *, struct sockaddr_in6 *);
|
/third_party/ltp/lib/ |
D | tst_net.c | 141 struct sockaddr_in *inet_ptr; in tst_get_connect_address() 151 inet_ptr = (struct sockaddr_in*)addr; in tst_get_connect_address() 177 void tst_init_sockaddr_inet(struct sockaddr_in *sa, const char *ip_str, uint16_t port) in tst_init_sockaddr_inet() 179 memset(sa, 0, sizeof(struct sockaddr_in)); in tst_init_sockaddr_inet() 185 void tst_init_sockaddr_inet_bin(struct sockaddr_in *sa, uint32_t ip_val, uint16_t port) in tst_init_sockaddr_inet_bin() 187 memset(sa, 0, sizeof(struct sockaddr_in)); in tst_init_sockaddr_inet_bin()
|
/third_party/ltp/testcases/kernel/syscalls/accept/ |
D | accept02.c | 39 static struct sockaddr_in *server_addr; 40 static struct sockaddr_in *client_addr; 110 struct sockaddr_in *mc_group_addr; in setup() 117 mc_group_addr = (struct sockaddr_in *) &mc_group->gr_group; in setup() 127 addr_len = sizeof(struct sockaddr_in); in setup()
|
/third_party/ltp/testcases/network/sockets/ |
D | ltpClient.c | 69 void ping_network(struct sockaddr_in *rawAddr, int pid); 73 void ltp_traceroute(struct sockaddr_in *rawTraceAddr, char *hostName, int pid); 89 struct sockaddr_in udpClientAddr, in main() 310 struct sockaddr_in rawTraceAddr; in ltp_run_traceroute_tests() 337 struct sockaddr_in rawAddr; in ltp_run_ping_tests() 369 struct sockaddr_in rawAddr; in network_listener() 483 void ping_network(struct sockaddr_in *rawAddr, int pid) in ping_network() 491 struct sockaddr_in r_addr; in ping_network() 560 void ltp_traceroute(struct sockaddr_in *rawTraceAddr, char *hostName, int pid) in ltp_traceroute() 569 struct sockaddr_in rawReceiveAddr; in ltp_traceroute()
|
/third_party/ltp/utils/sctp/func_tests/ |
D | test_1_to_1_threads.c | 64 struct sockaddr_in conn_addr; 146 struct sockaddr_in lstn_addr; in main() 147 socklen_t len = sizeof(struct sockaddr_in); in main() 148 struct sockaddr_in svr_addr; in main() 168 sizeof(struct sockaddr_in)); in main()
|
D | test_basic.c | 92 struct sockaddr_in *in_addr; in main() 220 if (inmessage.msg_namelen != sizeof(struct sockaddr_in)) { in main() 276 if (inmessage.msg_namelen != sizeof(struct sockaddr_in)) { in main() 361 in_addr = (struct sockaddr_in *)sa_addr; in main() 365 addr_buf += sizeof(struct sockaddr_in); in main() 391 in_addr = (struct sockaddr_in *)sa_addr; in main() 395 addr_buf += sizeof(struct sockaddr_in); in main() 439 if (inmessage.msg_namelen != sizeof(struct sockaddr_in)) { in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/manual/network/ |
D | getnameinfo.c | 35 struct sockaddr_in sa; in getnameinfo_0100() 82 struct sockaddr_in sa; in getnameinfo_0300() 101 struct sockaddr_in sa; in getnameinfo_0400() 119 struct sockaddr_in sa; in getnameinfo_0500() 162 struct sockaddr_in sa; in getnameinfo_0700()
|
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/ |
D | user_recv_thread.c | 196 struct sockaddr_in *sa; 236 sa = (struct sockaddr_in *)malloc(sizeof(struct sockaddr_in)); 275 struct sockaddr_in src, dst; in recv_function_raw() 285 struct sockaddr_in from; in recv_function_raw() 299 memset(&src, 0, sizeof(struct sockaddr_in)); in recv_function_raw() 300 memset(&dst, 0, sizeof(struct sockaddr_in)); in recv_function_raw() 323 fromlen = sizeof(struct sockaddr_in); in recv_function_raw() 324 memset(&from, 0, sizeof(struct sockaddr_in)); in recv_function_raw() 385 dst.sin_len = sizeof(struct sockaddr_in); in recv_function_raw() 392 src.sin_len = sizeof(struct sockaddr_in); in recv_function_raw() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/connect/ |
D | connect01.c | 62 struct sockaddr_in sin1, sin2, sin3, sin4; 68 static pid_t start_server(struct sockaddr_in *); 84 sizeof(struct sockaddr_in), -1, EBADF, setup0, 90 sizeof(struct sockaddr_in), -1, EFAULT, setup1, 240 pid_t start_server(struct sockaddr_in *sin0) in start_server() 285 struct sockaddr_in fsin; in do_child()
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
D | ioctl.c | 102 printf("address: %s\n", inet_ntoa(((struct sockaddr_in *)&(ifr[i].ifr_addr))->sin_addr)); in ioctl_0200() 111 strcpy(interAddr, inet_ntoa(((struct sockaddr_in *)&(ifr[0].ifr_addr))->sin_addr)); in ioctl_0200() 116 struct sockaddr_in *srvAddr = (struct sockaddr_in *)&ifrAddr.ifr_addr; in ioctl_0200()
|
/third_party/ltp/testcases/kernel/syscalls/recvmsg/ |
D | recvmsg03.c | 50 struct sockaddr_in server_addr; in client() 51 struct sockaddr_in to_addr; in client() 93 struct sockaddr_in server_addr; in server() 94 struct sockaddr_in from_addr; in server()
|
/third_party/rust/crates/rustix/src/backend/libc/net/ |
D | write_sockaddr.rs | 24 pub(crate) unsafe fn encode_sockaddr_v4(v4: &SocketAddrV4) -> c::sockaddr_in { in encode_sockaddr_v4() argument 25 c::sockaddr_in { in encode_sockaddr_v4() 35 sin_len: size_of::<c::sockaddr_in>() as _, in encode_sockaddr_v4() 49 size_of::<c::sockaddr_in>() in write_sockaddr_v4()
|
/third_party/libuv/docs/code/udp-dhcp/ |
D | main.c | 26 uv_ip4_name((const struct sockaddr_in*) addr, sender, 16); in on_read() 108 struct sockaddr_in recv_addr; in main() 114 struct sockaddr_in broadcast_addr; in main() 122 struct sockaddr_in send_addr; in main()
|