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

123

/system/bluetooth/tools/
H A Dsock_shutdown_bug_l2cap.c30 struct sockaddr_l2 addr; local
32 addr.l2_family = AF_BLUETOOTH;
33 str2ba("00:01:02:0A:0B:0C", &addr.l2_bdaddr);
34 addr.l2_psm = htobs(1);
40 connect(fd, (struct sockaddr *)&addr, sizeof(addr));
H A Dsock_shutdown_bug_rfcomm.c31 struct sockaddr_rc addr; local
33 addr.rc_family = AF_BLUETOOTH;
34 addr.rc_channel = 19;
35 str2ba("00:17:E8:2C:A8:00", &addr.rc_bdaddr);
41 ret = connect(fd, (struct sockaddr *)&addr, sizeof(addr));
52 ret = connect(fd, (struct sockaddr *)&addr, sizeof(addr));
H A Dsock_shutdown_bug_tcp.c29 struct sockaddr_in addr; local
31 addr.sin_family = AF_INET;
32 addr.sin_port = 12348;
36 ret = bind(fd, (struct sockaddr *)&addr, sizeof(addr));
54 ret = bind(fd, (struct sockaddr *)&addr, sizeof(addr));
/system/core/libcutils/
H A Dsocket_loopback_client.c39 struct sockaddr_in addr; local
43 memset(&addr, 0, sizeof(addr));
44 addr.sin_family = AF_INET;
45 addr.sin_port = htons(port);
46 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
51 if(connect(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
H A Dsocket_inaddr_any_server.c38 struct sockaddr_in addr; local
42 memset(&addr, 0, sizeof(addr));
43 addr.sin_family = AF_INET;
44 addr.sin_port = htons(port);
45 addr.sin_addr.s_addr = htonl(INADDR_ANY);
53 if(bind(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
H A Dsocket_loopback_server.c38 struct sockaddr_in addr; local
42 memset(&addr, 0, sizeof(addr));
43 addr.sin_family = AF_INET;
44 addr.sin_port = htons(port);
45 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
53 if(bind(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
H A Dsocket_network_client.c42 struct sockaddr_in addr; local
49 memset(&addr, 0, sizeof(addr));
50 addr.sin_family = hp->h_addrtype;
51 addr.sin_port = htons(port);
52 memcpy(&addr.sin_addr, hp->h_addr, hp->h_length);
57 if(connect(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
H A Dsocket_local_client.c127 struct sockaddr_un addr; local
132 err = socket_make_sockaddr_un(name, namespaceId, &addr, &alen);
138 if(connect(fd, (struct sockaddr *) &addr, alen) < 0) {
H A Dsocket_local_server.c55 struct sockaddr_un addr; local
60 err = socket_make_sockaddr_un(name, namespaceId, &addr, &alen);
74 unlink(addr.sun_path);
80 if(bind(s, (struct sockaddr *) &addr, alen) < 0) {
H A Dabort_socket.c59 int asocket_connect(struct asocket *s, const struct sockaddr *addr, argument
65 ret = connect(s->fd, addr, addrlen);
119 int asocket_accept(struct asocket *s, struct sockaddr *addr, argument
154 ret = accept(s->fd, addr, addrlen);
H A Duevent.c51 struct sockaddr_nl addr; local
54 &addr,
55 sizeof(addr),
82 if (addr.nl_groups == 0 || addr.nl_pid != 0) {
98 struct sockaddr_nl addr; local
102 memset(&addr, 0, sizeof(addr));
103 addr.nl_family = AF_NETLINK;
104 addr
[all...]
/system/core/toolbox/
H A Dr.c16 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 Difconfig.c29 static inline void init_sockaddr_in(struct sockaddr_in *sin, const char *addr) argument
33 sin->sin_addr.s_addr = inet_addr(addr);
42 static void setdstaddr(int s, struct ifreq *ifr, const char *addr) argument
44 init_sockaddr_in((struct sockaddr_in *) &ifr->ifr_dstaddr, addr);
48 static void setnetmask(int s, struct ifreq *ifr, const char *addr) argument
50 init_sockaddr_in((struct sockaddr_in *) &ifr->ifr_netmask, addr);
54 static void setaddr(int s, struct ifreq *ifr, const char *addr) argument
56 init_sockaddr_in((struct sockaddr_in *) &ifr->ifr_addr, addr);
64 unsigned int addr, mask, flags; local
88 addr
[all...]
H A Dsyren.c16 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/netd/
H A DResolverController.cpp50 int ResolverController::setInterfaceAddress(const char* iface, struct in_addr* addr) { argument
55 _resolv_set_addr_of_iface(iface, addr);
H A DFirewallController.cpp85 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 DSecondaryTableController.cpp137 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
/system/core/debuggerd/arm/
H A Dmachine.c45 static void dump_memory(log_t* log, pid_t tid, uintptr_t addr, bool at_fault) { argument
50 p = addr & ~3;
52 if (p > addr) {
63 * addr contents ascii
125 uintptr_t addr = regs.uregs[reg]; variable
131 if (addr < 4096 || addr >= 0xc0000000) {
136 dump_memory(log, tid, addr, at_fault);
/system/core/debuggerd/mips/
H A Dmachine.c39 static void dump_memory(log_t* log, pid_t tid, uintptr_t addr, bool at_fault) { argument
44 p = addr & ~3;
46 if (p > addr) {
56 * addr contents ascii
122 uintptr_t addr = R(r.regs[reg]); variable
128 if (addr < 4096 || addr >= 0x80000000) {
133 dump_memory(log, tid, addr, at_fault);
/system/core/include/cutils/
H A Datomic-arm.h182 extern inline int32_t android_atomic_inc(volatile int32_t *addr) argument
184 return android_atomic_add(1, addr);
187 extern inline int32_t android_atomic_dec(volatile int32_t *addr) argument
189 return android_atomic_add(-1, addr);
H A Datomic-mips.h145 extern inline int32_t android_atomic_inc(volatile int32_t *addr) argument
147 return android_atomic_add(1, addr);
150 extern inline int32_t android_atomic_dec(volatile int32_t *addr) argument
152 return android_atomic_add(-1, addr);
H A Datomic-x86.h111 extern inline int32_t android_atomic_inc(volatile int32_t *addr) argument
113 return android_atomic_add(1, addr);
116 extern inline int32_t android_atomic_dec(volatile int32_t *addr) argument
118 return android_atomic_add(-1, addr);
/system/core/libcorkscrew/
H A Dptrace.c135 uintptr_t addr, const map_info_t** out_map_info, const symbol_t** out_symbol) {
136 const map_info_t* mi = find_map_info(context->map_info_list, addr);
141 symbol = find_symbol(data->symbol_table, addr - mi->start);
134 find_symbol_ptrace(const ptrace_context_t* context, uintptr_t addr, const map_info_t** out_map_info, const symbol_t** out_symbol) argument
H A Dmap_info.c100 const map_info_t* find_map_info(const map_info_t* milist, uintptr_t addr) { argument
102 while (mi && !(addr >= mi->start && addr < mi->end)) {
108 bool is_readable_map(const map_info_t* milist, uintptr_t addr) { argument
109 const map_info_t* mi = find_map_info(milist, addr);
113 bool is_executable_map(const map_info_t* milist, uintptr_t addr) { argument
114 const map_info_t* mi = find_map_info(milist, addr);
/system/core/adb/
H A Dadb_auth_client.c209 struct sockaddr addr; local
213 alen = sizeof(addr);
215 s = adb_socket_accept(fd, &addr, &alen);

Completed in 99 milliseconds

123