/external/llvm-project/lldb/include/lldb/Host/ |
D | SocketAddress.h | 45 SocketAddress(const struct sockaddr_in &s); 55 const SocketAddress &operator=(const struct sockaddr_in &s); 125 struct sockaddr_in &sockaddr_in() { in sockaddr_in() function 129 const struct sockaddr_in &sockaddr_in() const { in sockaddr_in() function 158 operator struct sockaddr_in *() { return &m_socket_addr.sa_ipv4; } 160 operator const struct sockaddr_in *() const { return &m_socket_addr.sa_ipv4; } 177 struct sockaddr_in sa_ipv4;
|
/external/libchromeos-rs/src/ |
D | net.rs | 12 c_int, in6_addr, in_addr, sa_family_t, sockaddr, sockaddr_in, sockaddr_in6, socklen_t, AF_INET, 41 fn sockaddrv4_to_lib_c(s: &SocketAddrV4) -> sockaddr_in { in sockaddrv4_to_lib_c() argument 42 sockaddr_in { in sockaddrv4_to_lib_c() 105 &sin as *const sockaddr_in as *const sockaddr, in bind() constant 106 size_of::<sockaddr_in>() as socklen_t, in bind() 144 &sin as *const sockaddr_in as *const sockaddr, in connect() constant 145 size_of::<sockaddr_in>() as socklen_t, in connect() 156 size_of::<sockaddr_in>() as socklen_t, in connect() 189 let mut sin = sockaddr_in { in local_port() 197 let mut addrlen = size_of::<sockaddr_in>() as socklen_t; in local_port() [all …]
|
/external/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 …]
|
/external/libsrtp2/test/ |
D | rtp.h | 89 struct sockaddr_in addr; /* reciever's address */ 96 struct sockaddr_in addr; /* receiver's address */ 109 struct sockaddr_in addr, 114 struct sockaddr_in addr, 123 struct sockaddr_in name, /* socket name */ 130 struct sockaddr_in name, /* socket name */
|
/external/usrsctp/programs/ |
D | client_upcall.c | 98 struct sockaddr_in addr; in handle_upcall() 101 socklen_t len = (socklen_t)sizeof(struct sockaddr_in); in handle_upcall() 137 struct sockaddr_in addr4; in main() 187 memset((void *)&addr4, 0, sizeof(struct sockaddr_in)); in main() 190 addr4.sin_len = sizeof(struct sockaddr_in); in main() 204 if (usrsctp_connect(sock, (struct sockaddr *)&addr4, sizeof(struct sockaddr_in)) < 0) { in main() 224 struct sockaddr_in *sin; in main() 228 sin = (struct sockaddr_in *)addr; in main() 232 addr = (struct sockaddr *)((caddr_t)addr + sizeof(struct sockaddr_in)); in main() 272 struct sockaddr_in *sin; in main() [all …]
|
D | client.c | 93 struct sockaddr_in addr4; in main() 152 memset((void *)&addr4, 0, sizeof(struct sockaddr_in)); in main() 155 addr4.sin_len = sizeof(struct sockaddr_in); in main() 169 if (usrsctp_connect(sock, (struct sockaddr *)&addr4, sizeof(struct sockaddr_in)) < 0) { in main() 187 struct sockaddr_in *sin; in main() 191 sin = (struct sockaddr_in *)addr; in main() 195 addr = (struct sockaddr *)((caddr_t)addr + sizeof(struct sockaddr_in)); in main() 235 struct sockaddr_in *sin; in main() 239 sin = (struct sockaddr_in *)addr; in main() 243 addr = (struct sockaddr *)((caddr_t)addr + sizeof(struct sockaddr_in)); in main()
|
D | ekr_loop_offload.c | 189 struct sockaddr_in *sin; 193 sin = (struct sockaddr_in *)addr; 236 struct sockaddr_in *sin; 240 sin = (struct sockaddr_in *)addr; 283 struct sockaddr_in sin_s, sin_c; 339 memset(&sin_c, 0, sizeof(struct sockaddr_in)); 342 sin_c.sin_len = sizeof(struct sockaddr_in); 346 memset(&sin_s, 0, sizeof(struct sockaddr_in)); 349 sin_s.sin_len = sizeof(struct sockaddr_in); 354 if (bind(fd_c, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) == SOCKET_ERROR) { [all …]
|
D | ekr_server.c | 159 struct sockaddr_in sin; 200 memset(&sin, 0, sizeof(struct sockaddr_in)); 203 sin.sin_len = sizeof(struct sockaddr_in); 211 if (bind(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) == SOCKET_ERROR) { 216 if (bind(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) < 0) { 221 memset(&sin, 0, sizeof(struct sockaddr_in)); 224 sin.sin_len = sizeof(struct sockaddr_in); 232 if (connect(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) == SOCKET_ERROR) { 237 if (connect(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) < 0) {
|
D | ekr_loop.c | 170 struct sockaddr_in *sin; 174 sin = (struct sockaddr_in *)addr; 217 struct sockaddr_in *sin; 221 sin = (struct sockaddr_in *)addr; 264 struct sockaddr_in sin_s, sin_c; 322 memset(&sin_c, 0, sizeof(struct sockaddr_in)); 325 sin_c.sin_len = sizeof(struct sockaddr_in); 329 memset(&sin_s, 0, sizeof(struct sockaddr_in)); 332 sin_s.sin_len = sizeof(struct sockaddr_in); 337 if (bind(fd_c, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) == SOCKET_ERROR) { [all …]
|
D | ekr_loop_upcall.c | 204 struct sockaddr_in *sin; 208 sin = (struct sockaddr_in *)addr; 251 struct sockaddr_in *sin; 255 sin = (struct sockaddr_in *)addr; 298 struct sockaddr_in sin_s, sin_c; 353 memset(&sin_c, 0, sizeof(struct sockaddr_in)); 356 sin_c.sin_len = sizeof(struct sockaddr_in); 360 memset(&sin_s, 0, sizeof(struct sockaddr_in)); 363 sin_s.sin_len = sizeof(struct sockaddr_in); 368 if (bind(fd_c, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) == SOCKET_ERROR) { [all …]
|
D | ekr_client.c | 159 struct sockaddr_in sin; 202 memset(&sin, 0, sizeof(struct sockaddr_in)); 205 sin.sin_len = sizeof(struct sockaddr_in); 213 if (bind(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) == SOCKET_ERROR) { 218 if (bind(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) < 0) { 223 memset(&sin, 0, sizeof(struct sockaddr_in)); 226 sin.sin_len = sizeof(struct sockaddr_in); 234 if (connect(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) == SOCKET_ERROR) { 239 if (connect(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) < 0) {
|
D | ekr_peer.c | 149 struct sockaddr_in sin; 197 memset(&sin, 0, sizeof(struct sockaddr_in)); 200 sin.sin_len = sizeof(struct sockaddr_in); 208 if (bind(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) == SOCKET_ERROR) { 213 if (bind(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) < 0) { 218 memset(&sin, 0, sizeof(struct sockaddr_in)); 221 sin.sin_len = sizeof(struct sockaddr_in); 229 if (connect(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) == SOCKET_ERROR) { 234 if (connect(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) < 0) {
|
D | st_client.c | 256 struct sockaddr_in sin; 294 memset(&sin, 0, sizeof(struct sockaddr_in)); 297 sin.sin_len = sizeof(struct sockaddr_in); 305 if (bind(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) == SOCKET_ERROR) { 310 if (bind(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) < 0) { 315 memset(&sin, 0, sizeof(struct sockaddr_in)); 318 sin.sin_len = sizeof(struct sockaddr_in); 326 if (connect(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) == SOCKET_ERROR) { 331 if (connect(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) < 0) {
|
/external/mdnsresponder/mDNSShared/ |
D | dnsextd.h | 53 struct sockaddr_in src; 65 struct sockaddr_in cli; // client's source address 95 struct sockaddr_in cli; // clien'ts source address 123 struct sockaddr_in addr; // the address we will bind to 124 struct sockaddr_in llq_addr; // the address we will receive llq requests on. 125 struct sockaddr_in ns_addr; // the real ns server address
|
/external/mdnsresponder/mDNSPosix/ |
D | mDNSUNP.c | 232 struct sockaddr_in *sinptr; in get_ifi_info() 340 sinptr = (struct sockaddr_in *) &ifr->ifr_addr; in get_ifi_info() 342 ifi->ifi_addr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info() 346 memcpy(ifi->ifi_addr, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info() 366 ifi->ifi_netmask = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info() 368 sinptr = (struct sockaddr_in *) &ifrcopy.ifr_addr; in get_ifi_info() 371 sinptr->sin_len = sizeof(struct sockaddr_in); in get_ifi_info() 374 memcpy(ifi->ifi_netmask, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info() 382 sinptr = (struct sockaddr_in *) &ifrcopy.ifr_broadaddr; in get_ifi_info() 385 sinptr->sin_len = sizeof( struct sockaddr_in ); in get_ifi_info() [all …]
|
/external/openssh/openbsd-compat/ |
D | fake-rfc2553.c | 50 struct sockaddr_in *sin = (struct sockaddr_in *)sa; in getnameinfo() 128 ai = malloc(sizeof(*ai) + sizeof(struct sockaddr_in)); in malloc_ai() 132 memset(ai, '\0', sizeof(*ai) + sizeof(struct sockaddr_in)); in malloc_ai() 136 ai->ai_addrlen = sizeof(struct sockaddr_in); in malloc_ai() 139 ((struct sockaddr_in *)(ai)->ai_addr)->sin_port = port; in malloc_ai() 140 ((struct sockaddr_in *)(ai)->ai_addr)->sin_addr.s_addr = addr; in malloc_ai()
|
/external/iputils/ |
D | rdisc.c | 87 static int join(int sock, struct sockaddr_in *sin); 88 static void solicitor(struct sockaddr_in *); 90 static void advertise(struct sockaddr_in *, int lft); 93 static void pr_pack(char *buf, int cc, struct sockaddr_in *from); 101 static int sendmcast(int s, char *packet, int packetlen, struct sockaddr_in *); 103 static int sendmcastif(int s, char *packet, int packetlen, struct sockaddr_in *sin, struct interfac… 174 struct sockaddr_in whereto;/* Address to send to */ 222 static __inline__ int isbroadcast(struct sockaddr_in *sin) in isbroadcast() 227 static __inline__ int ismulticast(struct sockaddr_in *sin) in ismulticast() 288 struct sockaddr_in from; in main() [all …]
|
/external/rust/crates/mio/src/sys/unix/ |
D | net.rs | 69 v4: libc::sockaddr_in, 89 let sockaddr_in = libc::sockaddr_in { in socket_addr() localVariable 105 let sockaddr = SocketAddrCRepr { v4: sockaddr_in }; in socket_addr() 106 let socklen = size_of::<libc::sockaddr_in>() as libc::socklen_t; in socket_addr() 150 let addr: &libc::sockaddr_in = &*(storage as *const libc::sockaddr_in); in to_socket_addr()
|
/external/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 *); 86 extern void in6_sin_2_v4mapsin6(struct sockaddr_in *, struct sockaddr_in6 *); 87 extern void in6_sin6_2_sin(struct sockaddr_in *, struct sockaddr_in6 *);
|
/external/ltp/testcases/kernel/syscalls/accept/ |
D | accept02.c | 36 static struct sockaddr_in *server_addr; 37 static struct sockaddr_in *client_addr; 107 struct sockaddr_in *mc_group_addr; in setup() 114 mc_group_addr = (struct sockaddr_in *) &mc_group->gr_group; in setup() 124 addr_len = sizeof(struct sockaddr_in); in setup()
|
/external/openscreen/platform/impl/ |
D | socket_address_posix_unittest.cc | 15 const sockaddr_in* v4_address = in TEST() 16 reinterpret_cast<const sockaddr_in*>(address.address()); in TEST() 47 struct sockaddr_in address; in TEST() 54 const sockaddr_in* v4_address = in TEST() 55 reinterpret_cast<const sockaddr_in*>(address_posix.address()); in TEST()
|
/external/grpc-grpc/test/core/iomgr/ |
D | tcp_client_posix_test.cc | 81 struct sockaddr_in* addr = in test_succeeds() 82 reinterpret_cast<struct sockaddr_in*>(resolved_addr.addr); in test_succeeds() 92 resolved_addr.len = static_cast<socklen_t>(sizeof(struct sockaddr_in)); in test_succeeds() 141 struct sockaddr_in* addr = in test_fails() 142 reinterpret_cast<struct sockaddr_in*>(resolved_addr.addr); in test_fails() 150 resolved_addr.len = static_cast<socklen_t>(sizeof(struct sockaddr_in)); in test_fails()
|
D | tcp_client_uv_test.cc | 86 struct sockaddr_in* addr = (struct sockaddr_in*)resolved_addr.addr; in test_succeeds() 95 resolved_addr.len = sizeof(struct sockaddr_in); in test_succeeds() 136 struct sockaddr_in* addr = (struct sockaddr_in*)resolved_addr.addr; in test_fails() 144 resolved_addr.len = sizeof(struct sockaddr_in); in test_fails()
|
D | udp_server_test.cc | 211 struct sockaddr_in* addr = in test_no_op_with_port() 212 reinterpret_cast<struct sockaddr_in*>(resolved_addr.addr); in test_no_op_with_port() 217 resolved_addr.len = static_cast<socklen_t>(sizeof(struct sockaddr_in)); in test_no_op_with_port() 235 struct sockaddr_in* addr = in test_no_op_with_port_and_socket_factory() 236 reinterpret_cast<struct sockaddr_in*>(resolved_addr.addr); in test_no_op_with_port_and_socket_factory() 249 resolved_addr.len = static_cast<socklen_t>(sizeof(struct sockaddr_in)); in test_no_op_with_port_and_socket_factory() 271 struct sockaddr_in* addr = in test_no_op_with_port_and_start() 272 reinterpret_cast<struct sockaddr_in*>(resolved_addr.addr); in test_no_op_with_port_and_start() 277 resolved_addr.len = static_cast<socklen_t>(sizeof(struct sockaddr_in)); in test_no_op_with_port_and_start()
|
/external/ltp/testcases/network/lib6/ |
D | getaddrinfo_01.c | 88 struct sockaddr_in *psin = 0; in gaiv4() 93 err |= pai->ai_addrlen != sizeof(struct sockaddr_in); in gaiv4() 95 psin = (struct sockaddr_in *)pai->ai_addr; in gaiv4() 165 struct sockaddr_in *psin = 0; in gaiv4() 170 err |= pai->ai_addrlen != sizeof(struct sockaddr_in); in gaiv4() 172 psin = (struct sockaddr_in *)pai->ai_addr; in gaiv4() 209 struct sockaddr_in *psin = 0; in gaiv4() 214 err |= pai->ai_addrlen != sizeof(struct sockaddr_in); in gaiv4() 216 psin = (struct sockaddr_in *)pai->ai_addr; in gaiv4() 277 struct sockaddr_in *psin = 0; in gaiv4() [all …]
|