/system/core/toolbox/ |
H A D | netstat.c | 74 /* addr + : + port + \0 */ 77 static void addr2str(int af, const void *addr, unsigned port, char *buf) argument 79 if (inet_ntop(af, addr, buf, ADDR_LEN) == NULL) {
|
H A D | r.c | 16 unsigned addr, value, endaddr = 0; local 34 addr = strtoul(argv[1], 0, 16); 41 endaddr = addr + width - 1; 43 if (endaddr <= addr) { 59 mmap_start = addr & ~(PAGE_SIZE - 1); 71 while (addr <= endaddr) { 74 unsigned *x = (unsigned*) (((unsigned) page) + (addr & 4095)); 76 fprintf(stderr,"%08x: %08x\n", addr, *x); 80 unsigned short *x = (unsigned short*) (((unsigned) page) + (addr & 4095)); 82 fprintf(stderr,"%08x: %04x\n", addr, * [all...] |
H A D | syren.c | 16 unsigned long addr; member in struct:syren_io_args 22 u_char addr; member in struct:__anon487 57 fprintf(stderr, "usage: syren [r/w] [REGNAME | page:addr] (value)\n"); 112 sio.addr = registers[i].addr; 132 sio.addr = strtoul(addr_str, 0, 0); 136 sio.addr = r->addr;
|
/system/extras/ext4_utils/ |
H A D | ext4_utils.h | 49 static inline void *mmap64(void *addr, size_t length, int prot, int flags, argument 52 return __mmap2(addr, length, prot, flags, fd, offset >> 12);
|
/system/extras/tests/bionic/libc/other/ |
H A D | test_atomics.c | 4 extern int __atomic_dec(volatile int* addr);
|
/system/extras/tests/directiotest/ |
H A D | directiotest.c | 63 static void pagealign_free(void *addr, size_t size) argument 65 int ret = munmap(addr, size);
|
/system/extras/tests/iptables/qtaguid/ |
H A D | socketTag.cpp | 41 SockInfo() : fd(-1), addr(NULL) {}; 45 void *addr; member in class:android::SockInfo 122 * return it when *addr == NULL. 152 if (addr) { 154 asprintf(&match_template, "sock=%lx %s", addr, "tag=0x%llx (uid=%u)"); 167 if (pos && !addr) { 171 &addr, &k_tag, &k_uid, &dummy_pid, &dummy_count ); 173 testPrintE("Unable to read sock addr res=%d", res); 174 addr = 0; 177 testPrintI("Got sock_addr %lx", addr); [all...] |
/system/extras/tests/memtest/ |
H A D | memtest.cpp | 63 static void preload(volatile char* addr, size_t s) argument 66 char c = addr[i]; 599 void* addr = malloc(size); local 600 if (addr == 0) { 605 printf("size = %9zd, addr = %p (total = %9zd (%zd MB))\n", 606 size, addr, total, total / (1024*1024)); 610 memset(addr, 0, size);
|
/system/netd/ |
H A D | CommandListener.cpp | 397 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 D | DnsProxyListener.cpp | 194 void* addr = malloc(sizeof(struct in6_addr)); local 196 int result = inet_pton(addrFamily, addrStr, addr); 202 free(addr); 209 new DnsProxyListener::GetHostByAddrHandler(cli, addr, addrLen, addrFamily);
|
H A D | FirewallController.cpp | 85 int FirewallController::setEgressSourceRule(const char* addr, FirewallRule rule) { argument 87 if (strchr(addr, ':')) { 99 res |= execIptables(target, op, LOCAL_INPUT, "-d", addr, "-j", "RETURN", NULL); 100 res |= execIptables(target, op, LOCAL_OUTPUT, "-s", addr, "-j", "RETURN", NULL); 104 int FirewallController::setEgressDestRule(const char* addr, int protocol, int port, argument 107 if (strchr(addr, ':')) { 125 res |= execIptables(target, op, LOCAL_INPUT, "-s", addr, "-p", protocolStr, 127 res |= execIptables(target, op, LOCAL_OUTPUT, "-d", addr, "-p", protocolStr,
|
H A D | MDnsSdListener.cpp | 311 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);
|
H A D | ResolverController.cpp | 50 int ResolverController::setInterfaceAddress(const char* iface, struct in_addr* addr) { argument 55 _resolv_set_addr_of_iface(iface, addr);
|
H A D | ResolverController.h | 30 int setInterfaceAddress(const char* iface, struct in_addr* addr);
|
H A D | SecondaryTableController.cpp | 137 const char *SecondaryTableController::getVersion(const char *addr) { argument 138 if (strchr(addr, ':') != NULL) { 159 const char *addr) { 165 asprintf(&cmd, "%s %s rule %s from %s table %d", IP_PATH, getVersion(addr), 166 action, addr, tableIndex + BASE_TABLE_NUMBER); 176 const char *iface, const char *addr) { 185 asprintf(&cmd, "%s route %s %s dev %s table %d", IP_PATH, action, addr, iface, 158 modifyFromRule(int tableIndex, const char *action, const char *addr) argument 175 modifyLocalRoute(int tableIndex, const char *action, const char *iface, const char *addr) argument
|
H A D | SecondaryTableController.h | 41 int modifyFromRule(int tableIndex, const char *action, const char *addr); 42 int modifyLocalRoute(int tableIndex, const char *action, const char *iface, const char *addr); 52 const char *getVersion(const char *addr);
|