/external/chromium_org/net/base/ |
D | address_list_unittest.cc | 20 struct sockaddr_in address; in TEST() 50 struct sockaddr_in* addr = in TEST() 51 reinterpret_cast<struct sockaddr_in*>(storage[i].addr); in TEST() 52 storage[i].addr_len = sizeof(struct sockaddr_in); in TEST() 101 sizeof(struct sockaddr_in), in TEST() 102 offsetof(struct sockaddr_in, sin_addr), in TEST() 115 sizeof(struct sockaddr_in), in TEST() 116 offsetof(struct sockaddr_in, sin_addr), in TEST()
|
D | ip_endpoint.cc | 20 const socklen_t kSockaddrInSize = sizeof(struct sockaddr_in); 62 struct sockaddr_in* addr = reinterpret_cast<struct sockaddr_in*>(address); in ToSockAddr() 63 memset(addr, 0, sizeof(struct sockaddr_in)); in ToSockAddr()
|
/external/chromium/net/base/ |
D | ip_endpoint.cc | 51 if (*address_length < sizeof(struct sockaddr_in)) in ToSockAddr() 53 *address_length = sizeof(struct sockaddr_in); in ToSockAddr() 54 struct sockaddr_in* addr = reinterpret_cast<struct sockaddr_in*>(address); in ToSockAddr() 55 memset(addr, 0, sizeof(struct sockaddr_in)); in ToSockAddr() 86 const struct sockaddr_in* addr = in FromSockAddr() 87 reinterpret_cast<const struct sockaddr_in*>(address); in FromSockAddr()
|
D | address_list.cc | 63 const size_t sockaddr_in_size = sizeof(struct sockaddr_in); in AddressList() 66 struct sockaddr_in* addr = reinterpret_cast<struct sockaddr_in*>( in AddressList() 201 case sizeof(struct sockaddr_in): in CreateAddressListFromSockaddr() 203 const struct sockaddr_in* sin = in CreateAddressListFromSockaddr() 204 reinterpret_cast<const struct sockaddr_in*>(address); in CreateAddressListFromSockaddr()
|
/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 | 225 struct sockaddr_in *sinptr; in get_ifi_info() 333 sinptr = (struct sockaddr_in *) &ifr->ifr_addr; in get_ifi_info() 335 ifi->ifi_addr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info() 339 memcpy(ifi->ifi_addr, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info() 359 ifi->ifi_netmask = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info() 361 sinptr = (struct sockaddr_in *) &ifrcopy.ifr_addr; in get_ifi_info() 364 sinptr->sin_len = sizeof(struct sockaddr_in); in get_ifi_info() 367 memcpy(ifi->ifi_netmask, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info() 375 sinptr = (struct sockaddr_in *) &ifrcopy.ifr_broadaddr; in get_ifi_info() 378 sinptr->sin_len = sizeof( struct sockaddr_in ); in get_ifi_info() [all …]
|
/external/srtp/include/ |
D | rtp.h | 77 struct sockaddr_in addr, unsigned int ssrc); 81 struct sockaddr_in addr, unsigned int ssrc); 89 struct sockaddr_in name, /* socket name */ 96 struct sockaddr_in name, /* socket name */
|
D | rtp_priv.h | 63 struct sockaddr_in addr; /* reciever's address */ 70 struct sockaddr_in addr; /* receiver's address */
|
/external/dropbear/ |
D | fake-rfc2553.c | 49 struct sockaddr_in *sin = (struct sockaddr_in *)sa; in getnameinfo() 123 ai = malloc(sizeof(*ai) + sizeof(struct sockaddr_in)); in malloc_ai() 127 memset(ai, '\0', sizeof(*ai) + sizeof(struct sockaddr_in)); in malloc_ai() 131 ai->ai_addrlen = sizeof(struct sockaddr_in); in malloc_ai() 134 ((struct sockaddr_in *)(ai)->ai_addr)->sin_port = port; in malloc_ai() 135 ((struct sockaddr_in *)(ai)->ai_addr)->sin_addr.s_addr = addr; in malloc_ai()
|
D | svr-x11fwd.c | 42 static int send_msg_channel_open_x11(int fd, struct sockaddr_in* addr); 104 struct sockaddr_in addr; in x11accept() 190 static int send_msg_channel_open_x11(int fd, struct sockaddr_in* addr) { in send_msg_channel_open_x11() 211 struct sockaddr_in addr; in bindport() 222 sizeof(struct sockaddr_in)) == 0) { in bindport()
|
/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()
|
D | bindresvport.c | 57 struct sockaddr_in *in; in bindresvport_sa() 77 in = (struct sockaddr_in *)sa; in bindresvport_sa() 78 salen = sizeof(struct sockaddr_in); in bindresvport_sa()
|
/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 …]
|
D | clockdiff.c | 104 struct sockaddr_in server; 126 measure(struct sockaddr_in * addr) in measure() 153 length = sizeof(struct sockaddr_in); in measure() 170 length = sizeof(struct sockaddr_in); in measure() 201 (struct sockaddr *)addr, sizeof(struct sockaddr_in)); in measure() 303 measure_opt(struct sockaddr_in * addr) in measure_opt() 329 length = sizeof(struct sockaddr_in); in measure_opt() 346 length = sizeof(struct sockaddr_in); in measure_opt() 379 (struct sockaddr *)addr, sizeof(struct sockaddr_in)); in measure_opt() 625 struct sockaddr_in myaddr; in main()
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
D | u_network.c | 114 struct sockaddr_in sa; in u_socket_connect() 117 memset(&sa, 0, sizeof(struct sockaddr_in)); in u_socket_connect() 147 struct sockaddr_in sa; in u_socket_listen_on_port() 148 memset(&sa, 0, sizeof(struct sockaddr_in)); in u_socket_listen_on_port() 157 if (bind(s, (struct sockaddr *)&sa, sizeof(struct sockaddr_in)) == -1) { in u_socket_listen_on_port()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_network.c | 114 struct sockaddr_in sa; in u_socket_connect() 117 memset(&sa, 0, sizeof(struct sockaddr_in)); in u_socket_connect() 147 struct sockaddr_in sa; in u_socket_listen_on_port() 148 memset(&sa, 0, sizeof(struct sockaddr_in)); in u_socket_listen_on_port() 157 if (bind(s, (struct sockaddr *)&sa, sizeof(struct sockaddr_in)) == -1) { in u_socket_listen_on_port()
|
/external/chromium_org/native_client_sdk/src/tests/nacl_io_socket_test/ |
D | socket_test.cc | 39 void IP4ToSockAddr(uint32_t ip, uint16_t port, struct sockaddr_in* addr) { in IP4ToSockAddr() 75 sockaddr_in addr; in Bind() 232 sockaddr_in addr; in TEST_F() 248 EXPECT_EQ(sizeof(sockaddr_in), addrlen); in TEST_F() 266 sockaddr_in addr; in TEST_F() 267 sockaddr_in addr2; in TEST_F() 296 EXPECT_EQ(sizeof(sockaddr_in), addrlen); in TEST_F() 311 sockaddr_in addr; in TEST_F() 341 sockaddr_in addr; in TEST_F() 371 sockaddr_in addr; in TEST_F() [all …]
|
/external/dhcpcd/ |
D | ifaddrs.c | 38 struct sockaddr_in *saddr = NULL; in get_interface() 39 struct sockaddr_in *smask = NULL; in get_interface() 63 saddr = malloc(sizeof(struct sockaddr_in)); in get_interface() 71 smask = malloc(sizeof(struct sockaddr_in)); in get_interface()
|
/external/netperf/ |
D | nettest_xti.c | 536 struct sockaddr_in server; in send_xti_tcp_stream() 823 server_call.addr.maxlen = sizeof(struct sockaddr_in); in send_xti_tcp_stream() 824 server_call.addr.len = sizeof(struct sockaddr_in); in send_xti_tcp_stream() 1245 struct sockaddr_in myaddr_in, peeraddr_in; in recv_xti_tcp_stream() 1379 bind_req.addr.maxlen = sizeof(struct sockaddr_in); in recv_xti_tcp_stream() 1380 bind_req.addr.len = sizeof(struct sockaddr_in); in recv_xti_tcp_stream() 1384 bind_resp.addr.maxlen = sizeof(struct sockaddr_in); in recv_xti_tcp_stream() 1385 bind_resp.addr.len = sizeof(struct sockaddr_in); in recv_xti_tcp_stream() 1480 call_req.addr.maxlen = sizeof(struct sockaddr_in); in recv_xti_tcp_stream() 1481 call_req.addr.len = sizeof(struct sockaddr_in); in recv_xti_tcp_stream() [all …]
|
/external/qemu/slirp/ |
D | udp.h | 101 int udp_output _P((struct socket *, struct mbuf *, struct sockaddr_in *)); 106 struct sockaddr_in *saddr, struct sockaddr_in *daddr,
|
/external/valgrind/main/none/tests/ |
D | fdleak_ipv4.c | 16 struct sockaddr_in baddr; in server() 17 struct sockaddr_in addr; in server() 42 struct sockaddr_in addr; in client()
|
/external/ipsec-tools/src/racoon/ |
D | sockmisc.c | 106 sa1 = (caddr_t)&((struct sockaddr_in *)addr1)->sin_addr; 107 sa2 = (caddr_t)&((struct sockaddr_in *)addr2)->sin_addr; 160 sa1 = (caddr_t)&((struct sockaddr_in *)addr1)->sin_addr; 161 sa2 = (caddr_t)&((struct sockaddr_in *)addr2)->sin_addr; 162 port1 = ((struct sockaddr_in *)addr1)->sin_port; 163 port2 = ((struct sockaddr_in *)addr2)->sin_port; 225 sa1 = (caddr_t)&((struct sockaddr_in *)addr1)->sin_addr; 226 sa2 = (caddr_t)&((struct sockaddr_in *)addr2)->sin_addr; 227 port1 = ((struct sockaddr_in *)addr1)->sin_port; 228 port2 = ((struct sockaddr_in *)addr2)->sin_port; [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | ctrl_iface_udp.c | 33 struct sockaddr_in addr; 54 struct sockaddr_in *from, in wpa_supplicant_ctrl_iface_attach() 62 os_memcpy(&dst->addr, from, sizeof(struct sockaddr_in)); in wpa_supplicant_ctrl_iface_attach() 74 struct sockaddr_in *from, in wpa_supplicant_ctrl_iface_detach() 101 struct sockaddr_in *from, in wpa_supplicant_ctrl_iface_level() 153 struct sockaddr_in from; in wpa_supplicant_ctrl_iface_receive() 272 struct sockaddr_in addr; in wpa_supplicant_ctrl_iface_init() 450 struct sockaddr_in from; in wpa_supplicant_global_ctrl_iface_receive() 525 struct sockaddr_in addr; in wpa_supplicant_global_ctrl_iface_init()
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
D | socketaddress.cc | 277 void SocketAddress::ToSockAddr(sockaddr_in* saddr) const { in ToSockAddr() 292 bool SocketAddress::FromSockAddr(const sockaddr_in& saddr) { in FromSockAddr() 312 sockaddr_in* saddr = reinterpret_cast<sockaddr_in*>(addr); in ToSockAddrStorageHelper() 315 return sizeof(sockaddr_in); in ToSockAddrStorageHelper() 375 const sockaddr_in* saddr = reinterpret_cast<const sockaddr_in*>(&addr); in SocketAddressFromSockAddrStorage()
|
/external/chromium/third_party/libjingle/source/talk/base/ |
D | socketaddress.h | 37 struct sockaddr_in; 164 void ToSockAddr(sockaddr_in* saddr) const; 167 bool FromSockAddr(const sockaddr_in& saddr);
|