/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 …]
|
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 | 53 static int get_hostname(char *ipstr, struct sockaddr_in *sockin) in get_hostname() 173 (((struct sockaddr_in *)&((rt)->rt_genmask))->sin_addr.s_addr) in is_prefix() 200 unsigned int addr_mask = (((struct sockaddr_in *)&((rt)->rt_genmask))->sin_addr.s_addr); in get_next_params() 204 if (get_hostname(*netmask, (struct sockaddr_in *) &sock) < 0) in get_next_params() 212 if ((ishost = get_hostname(*argv, (struct sockaddr_in *) &rt->rt_gateway)) == 0) { in get_next_params() 239 unsigned int addr_mask = (((struct sockaddr_in *)&((rt)->rt_genmask))->sin_addr.s_addr); in verify_netmask() 240 …unsigned int router_addr = ~(unsigned int)(((struct sockaddr_in *)&((rt)->rt_dst))->sin_addr.s_add… in verify_netmask() 247 addr_mask = ((struct sockaddr_in *) &rt->rt_dst)->sin_addr.s_addr; in verify_netmask() 270 (struct sockaddr_in *) &rt.rt_dst)) < 0) in setroute() 280 (((struct sockaddr_in *)&((rt).rt_genmask))->sin_addr.s_addr) = INVALID_ADDR; in setroute()
|
/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/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/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/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/netperf/src/ |
D | nettest_xti.c | 535 struct sockaddr_in server; in send_xti_tcp_stream() 822 server_call.addr.maxlen = sizeof(struct sockaddr_in); in send_xti_tcp_stream() 823 server_call.addr.len = sizeof(struct sockaddr_in); in send_xti_tcp_stream() 1244 struct sockaddr_in myaddr_in, peeraddr_in; in recv_xti_tcp_stream() 1378 bind_req.addr.maxlen = sizeof(struct sockaddr_in); in recv_xti_tcp_stream() 1379 bind_req.addr.len = sizeof(struct sockaddr_in); in recv_xti_tcp_stream() 1383 bind_resp.addr.maxlen = sizeof(struct sockaddr_in); in recv_xti_tcp_stream() 1384 bind_resp.addr.len = sizeof(struct sockaddr_in); in recv_xti_tcp_stream() 1479 call_req.addr.maxlen = sizeof(struct sockaddr_in); in recv_xti_tcp_stream() 1480 call_req.addr.len = sizeof(struct sockaddr_in); in recv_xti_tcp_stream() [all …]
|
/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/dhcpcd-6.8.2/ |
D | ifaddrs.c | 40 struct sockaddr_in *saddr = NULL; in get_interface() 41 struct sockaddr_in *smask = NULL; in get_interface() 65 saddr = malloc(sizeof(struct sockaddr_in)); in get_interface() 73 smask = malloc(sizeof(struct sockaddr_in)); in get_interface()
|
/external/webrtc/webrtc/base/ |
D | socketaddress.cc | 257 void SocketAddress::ToSockAddr(sockaddr_in* saddr) const { in ToSockAddr() 272 bool SocketAddress::FromSockAddr(const sockaddr_in& saddr) { in FromSockAddr() 294 sockaddr_in* saddr = reinterpret_cast<sockaddr_in*>(addr); in ToSockAddrStorageHelper() 297 return sizeof(sockaddr_in); in ToSockAddrStorageHelper() 316 const sockaddr_in* saddr = reinterpret_cast<const sockaddr_in*>(&addr); in SocketAddressFromSockAddrStorage()
|
D | socketaddress.h | 22 struct sockaddr_in; 165 void ToSockAddr(sockaddr_in* saddr) const; 168 bool FromSockAddr(const sockaddr_in& saddr);
|
D | ifaddrs-android.cc | 70 sockaddr_in* sa = new sockaddr_in; in set_addresses() 89 sockaddr_in* mask = new sockaddr_in; in make_prefixes()
|
/external/libpcap/tests/ |
D | findalldevstest.c | 80 inet_ntoa(((struct sockaddr_in *)(a->addr))->sin_addr)); in ifprint() 83 inet_ntoa(((struct sockaddr_in *)(a->netmask))->sin_addr)); in ifprint() 86 inet_ntoa(((struct sockaddr_in *)(a->broadaddr))->sin_addr)); in ifprint() 89 inet_ntoa(((struct sockaddr_in *)(a->dstaddr))->sin_addr)); in ifprint()
|
/external/valgrind/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/netperf/src/missing/ |
D | getaddrinfo.c | 337 struct sockaddr_in *sa_in; 470 new_res->ai_addrlen = sizeof(struct sockaddr_in); 475 malloc(sizeof(struct sockaddr_in)); 484 sa_in = (struct sockaddr_in *)new_res->ai_addr; 485 memset(sa_in, 0, sizeof(struct sockaddr_in)); 526 const struct sockaddr_in *sa_in = (const struct sockaddr_in *)sa;
|
/external/libpcap/ |
D | pcap-sita.c | 67 struct sockaddr_in *serv_addr; /* the address control block for comms to this unit */ 103 printf("%15s ", (addr->addr) ? inet_ntoa(((struct sockaddr_in *)addr->addr)->sin_addr) : ""); in dump_interface_list() 104 …printf("%15s ", (addr->netmask) ? inet_ntoa(((struct sockaddr_in *)addr->netmask)->sin_addr) : ""… in dump_interface_list() 105 …printf("%15s ", (addr->broadaddr) ? inet_ntoa(((struct sockaddr_in *)addr->broadaddr)->sin_addr) … in dump_interface_list() 106 …printf("%15s ", (addr->dstaddr) ? inet_ntoa(((struct sockaddr_in *)addr->dstaddr)->sin_addr) : ""… in dump_interface_list() 311 u->serv_addr = malloc(sizeof(struct sockaddr_in)); 322 memset((char *)u->serv_addr, 0, sizeof(struct sockaddr_in)); 331 if (connect(sockfd, (struct sockaddr *)u->serv_addr, sizeof(struct sockaddr_in)) < 0) { 567 struct sockaddr_in *s; 627 if ((s = malloc(sizeof(struct sockaddr_in))) == NULL) { /* get that amount of space */ [all …]
|
/external/libmicrohttpd/src/testcurl/https/ |
D | test_https_time_out.c | 51 struct sockaddr_in sa; in test_tls_session_time_out() 60 memset (&sa, '\0', sizeof (struct sockaddr_in)); in test_tls_session_time_out() 67 ret = connect (sd, &sa, sizeof (struct sockaddr_in)); in test_tls_session_time_out()
|
/external/deqp/framework/delibs/deutil/ |
D | deSocket.c | 241 DE_STATIC_ASSERT(sizeof(((struct sockaddr_in*)DE_NULL)->sin_port) == sizeof(deUint16)); 319 if (*bsdAddrLen < (NativeSocklen)sizeof(struct sockaddr_in)) in deSocketAddressToBsdAddress() 321 ((struct sockaddr_in*)bsdAddr)->sin_port = deHostToNetworkOrder16((deUint16)address->port); in deSocketAddressToBsdAddress() 336 struct sockaddr_in* addr4 = (struct sockaddr_in*)bsdAddr; in deSocketAddressToBsdAddress() 338 if (bsdAddrBufSize < sizeof(struct sockaddr_in)) in deSocketAddressToBsdAddress() 348 *bsdAddrLen = (NativeSocklen)sizeof(struct sockaddr_in); in deSocketAddressToBsdAddress() 378 const struct sockaddr_in* addr4 = (const struct sockaddr_in*)bsdAddr; in deBsdAddressToSocketAddress() 379 DE_ASSERT(addrLen >= (int)sizeof(struct sockaddr_in)); in deBsdAddressToSocketAddress()
|
/external/wpa_supplicant_8/src/wps/ |
D | http_server.c | 25 struct sockaddr_in cli; 62 struct sockaddr_in *cli) in http_request_init() 193 struct sockaddr_in * http_request_get_cli_addr(struct http_request *req) in http_request_get_cli_addr() 201 struct sockaddr_in addr; in http_server_cb() 233 struct sockaddr_in sin; in http_server_init()
|
D | wps_upnp_ssdp.c | 234 struct sockaddr_in dest; in advertisement_state_machine_stop() 271 struct sockaddr_in dest; in advertisement_state_machine_handler() 454 struct sockaddr_in *client, in msearchreply_state_machine_start() 520 struct sockaddr_in *client, const char *data) in ssdp_parse_msearch() 694 struct sockaddr_in addr; /* client address */ in ssdp_listener_handler() 735 struct sockaddr_in addr; in ssdp_listener_open() 813 struct sockaddr_in *sin; in add_ssdp_network() 824 sin = aliasing_hide_typecast(&rt.rt_dst, struct sockaddr_in); in add_ssdp_network() 828 sin = aliasing_hide_typecast(&rt.rt_genmask, struct sockaddr_in); in add_ssdp_network()
|
D | http_client.h | 21 char * http_client_url_parse(const char *url, struct sockaddr_in *dst, 23 struct http_client * http_client_addr(struct sockaddr_in *dst,
|