Searched defs:addr (Results 51 - 56 of 56) sorted by relevance

123

/system/netd/
H A DCommandListener.cpp397 struct in_addr addr; local
405 if (ifc_get_info(argv[2], &addr.s_addr, &prefixLength, &flags)) {
412 ALOGW("Failed to retrieve HW addr for %s (%s)", argv[2], strerror(errno));
415 char *addr_s = strdup(inet_ntoa(addr));
443 // arglist: iface [addr prefixLength] flags
450 struct in_addr addr; local
456 if (!inet_aton(argv[3], &addr)) {
460 if (ifc_set_addr(argv[2], addr.s_addr)) {
467 if (addr.s_addr != 0 && ifc_set_prefixLength(argv[2], atoi(argv[4]))) {
875 struct in_addr addr; local
1399 const char* addr = argv[2]; local
1414 const char* addr = argv[2]; local
[all...]
H A DMDnsSdListener.cpp311 char addr[INET6_ADDRSTRLEN]; local
315 inet_ntop(sa->sa_family, &(((struct sockaddr_in *)sa)->sin_addr), addr, sizeof(addr));
317 inet_ntop(sa->sa_family, &(((struct sockaddr_in6 *)sa)->sin6_addr), addr, sizeof(addr));
319 asprintf(&msg, "%d %s %d %s", refNumber, quotedHostname, ttl, addr);
/system/core/adb/
H A Dadb.c622 struct sockaddr addr; local
626 alen = sizeof(addr);
627 fd = adb_socket_accept(_fd, &addr, &alen);
648 struct sockaddr addr; local
652 alen = sizeof(addr);
653 fd = adb_socket_accept(_fd, &addr, &alen);
H A Dsysdeps_win32.c582 struct sockaddr_in addr; local
591 memset(&addr, 0, sizeof(addr));
592 addr.sin_family = AF_INET;
593 addr.sin_port = htons(port);
594 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
604 if(connect(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
619 struct sockaddr_in addr; local
630 memset(&addr,
666 struct sockaddr_in addr; local
707 struct sockaddr_in addr; local
752 adb_socket_accept(int serverfd, struct sockaddr* addr, socklen_t *addrlen) argument
[all...]
/system/core/libnetutils/
H A Difc_utils.c87 static const char *ipaddr_to_string(in_addr_t addr) argument
91 in_addr.s_addr = addr;
217 static void init_sockaddr_in(struct sockaddr *sa, in_addr_t addr) argument
222 sin->sin_addr.s_addr = addr;
225 int ifc_set_addr(const char *name, in_addr_t addr) argument
231 init_sockaddr_in(&ifr.ifr_addr, addr);
251 void *addr; local
283 addr = &sin->sin_addr;
287 addr = &sin6->sin6_addr;
312 memcpy(RTA_DATA(rta), addr, addrle local
398 unsigned count, addr; local
454 ifc_get_addr(const char *name, in_addr_t *addr) argument
471 ifc_get_info(const char *name, in_addr_t *addr, int *prefixLength, unsigned *flags) argument
584 unsigned addr, count; local
655 struct in_addr addr; local
744 struct in_addr addr; local
[all...]
/system/core/libsparse/
H A Doutput_file.c51 static inline void *mmap64(void *addr, size_t length, int prot, int flags, argument
54 return __mmap2(addr, length, prot, flags, fd, offset >> 12);

Completed in 41 milliseconds

123