Searched defs:msg (Results 1 - 25 of 42) sorted by relevance

12

/system/core/libnetutils/
H A Ddhcpmsg.c24 static void *init_dhcp_msg(dhcp_msg *msg, int type, void *hwaddr, uint32_t xid) argument
28 memset(msg, 0, sizeof(dhcp_msg));
30 msg->op = OP_BOOTREQUEST;
31 msg->htype = HTYPE_ETHER;
32 msg->hlen = 6;
33 msg->hops = 0;
35 msg->flags = htons(FLAGS_BROADCAST);
37 msg->xid = xid;
39 memcpy(msg->chaddr, hwaddr, 6);
41 x = msg
55 init_dhcp_discover_msg(dhcp_msg *msg, void *hwaddr, uint32_t xid) argument
73 init_dhcp_request_msg(dhcp_msg *msg, void *hwaddr, uint32_t xid, uint32_t ipaddr, uint32_t serveraddr) argument
[all...]
H A Dpacket.c89 int send_packet(int s, int if_index, struct dhcp_msg *msg, int size, argument
130 udpsum = checksum(msg, size, udpsum);
137 iov[2].iov_base = (char *)msg;
156 int receive_packet(int s, struct dhcp_msg *msg) argument
237 memcpy(msg, &packet.dhcp, dhcp_size);
H A Ddhcpclient.c166 int decode_dhcp_msg(dhcp_msg *msg, int len, dhcp_info *info) argument
177 if (msg->options[0] != OPT_COOKIE1) return -1;
178 if (msg->options[1] != OPT_COOKIE2) return -1;
179 if (msg->options[2] != OPT_COOKIE3) return -1;
180 if (msg->options[3] != OPT_COOKIE4) return -1;
182 x = msg->options + 4;
228 info->ipaddr = msg->yiaddr;
245 void dump_dhcp_msg(dhcp_msg *msg, int len) argument
261 if (msg->op == OP_BOOTREQUEST)
263 else if (msg
338 send_message(int sock, int if_index, dhcp_msg *msg, int size) argument
347 is_valid_reply(dhcp_msg *msg, dhcp_msg *reply, int sz) argument
388 dhcp_msg *msg; local
[all...]
/system/core/libsysutils/src/
H A DFrameworkClient.cpp16 int FrameworkClient::sendMsg(const char *msg) { argument
24 ret = TEMP_FAILURE_RETRY(write(mSocket, msg, strlen(msg) +1));
26 SLOGW("Unable to send msg '%s' (%s)", msg, strerror(errno));
32 int FrameworkClient::sendMsg(const char *msg, const char *data) { argument
33 size_t bufflen = strlen(msg) + strlen(data) + 1;
39 snprintf(buffer, bufflen, "%s%s", msg, data);
H A DSocketClient.cpp53 int SocketClient::sendMsg(int code, const char *msg, bool addErrno) { argument
54 return sendMsg(code, msg, addErrno, mUseCmdNum);
57 int SocketClient::sendMsg(int code, const char *msg, bool addErrno, bool useCmdNum) { argument
63 ret = asprintf(&buf, "%d %d %s (%s)", code, getCmdNum(), msg, strerror(errno));
65 ret = asprintf(&buf, "%d %s (%s)", code, msg, strerror(errno));
69 ret = asprintf(&buf, "%d %d %s", code, getCmdNum(), msg);
71 ret = asprintf(&buf, "%d %s", code, msg);
133 int SocketClient::sendMsg(const char *msg) { argument
140 if (sendData(msg, strlen(msg)
[all...]
H A DSocketListener.cpp246 void SocketListener::sendBroadcast(int code, const char *msg, bool addErrno) { argument
252 if ((*i)->sendMsg(code, msg, addErrno, false)) {
/system/extras/fatblock/
H A Dutils.c33 void warn(char *msg) argument
35 fprintf(stderr, "%s", msg);
38 void die(char *msg) argument
40 fprintf(stderr, "%s", msg);
/system/core/libcutils/
H A Ddebugger.c30 debugger_msg_t msg; local
31 msg.tid = tid;
32 msg.action = DEBUGGER_ACTION_DUMP_TOMBSTONE;
35 if (TEMP_FAILURE_RETRY(write(s, &msg, sizeof(msg))) != sizeof(msg)) {
63 debugger_msg_t msg; local
64 msg.tid = tid;
65 msg.action = DEBUGGER_ACTION_DUMP_BACKTRACE;
68 if (TEMP_FAILURE_RETRY(write(s, &msg, sizeo
[all...]
/system/core/include/cutils/
H A Dlogger.h27 char msg[0]; /* the entry's payload */ member in struct:logger_entry
43 char msg[0]; /* the entry's payload */ member in struct:logger_entry_v2
/system/core/logwrapper/
H A Dlogwrapper.c30 void fatal(const char *msg) { argument
31 fprintf(stderr, "%s", msg);
32 ALOG(LOG_ERROR, "logwrapper", "%s", msg);
/system/netd/
H A DNetlinkHandler.cpp93 char msg[255]; local
94 snprintf(msg, sizeof(msg), "Iface added %s", name);
97 msg, false);
101 char msg[255]; local
102 snprintf(msg, sizeof(msg), "Iface removed %s", name);
105 msg, false);
109 char msg[255]; local
110 snprintf(msg, sizeo
118 char msg[255]; local
127 char msg[255]; local
135 char msg[255]; local
[all...]
H A DDnsProxyListener.cpp114 char* msg = NULL; local
115 asprintf( &msg, "Invalid number of arguments to getaddrinfo: %i", argc);
116 ALOGW("%s", msg);
117 cli->sendMsg(ResponseCode::CommandParameterError, msg, false);
118 free(msg);
180 char* msg = NULL; local
181 asprintf(&msg, "Invalid number of arguments to gethostbyaddr: %i", argc);
182 ALOGW("%s", msg);
183 cli->sendMsg(ResponseCode::CommandParameterError, msg, false);
184 free(msg);
196 char* msg = NULL; local
[all...]
/system/core/adb/
H A Dfile_sync_service.c58 syncmsg msg; local
61 msg.stat.id = ID_STAT;
64 msg.stat.mode = 0;
65 msg.stat.size = 0;
66 msg.stat.time = 0;
68 msg.stat.mode = htoll(st.st_mode);
69 msg.stat.size = htoll(st.st_size);
70 msg.stat.time = htoll(st.st_mtime);
73 return writex(s, &msg.stat, sizeof(msg
81 syncmsg msg; local
131 syncmsg msg; local
153 syncmsg msg; local
229 syncmsg msg; local
321 syncmsg msg; local
361 syncmsg msg; local
[all...]
H A Djdwp_service.c320 struct msghdr msg; local
328 msg.msg_name = NULL;
329 msg.msg_namelen = 0;
330 msg.msg_iov = &iov;
331 msg.msg_iovlen = 1;
332 msg.msg_flags = 0;
333 msg.msg_control = buffer;
334 msg.msg_controllen = sizeof(buffer);
336 cmsg = CMSG_FIRSTHDR(&msg);
337 cmsg->cmsg_len = msg
[all...]
/system/core/libion/
H A Dion_test.c113 struct msghdr msg = { local
134 cmsg = CMSG_FIRSTHDR(&msg);
141 printf("master sending msg 1\n");
142 sendmsg(sd[0], &msg, 0);
143 if (recvmsg(sd[0], &msg, 0) < 0)
144 perror("master recv msg 2");
148 sendmsg(sd[0], &msg, 0);
150 if (recvmsg(sd[0], &msg, 0) < 0)
153 struct msghdr msg; local
172 perror("child recv msg
[all...]
/system/core/liblog/
H A Dlogd_write.c133 int __android_log_write(int prio, const char *tag, const char *msg) argument
156 vec[2].iov_base = (void *) msg;
157 vec[2].iov_len = strlen(msg) + 1;
162 int __android_log_buf_write(int bufID, int prio, const char *tag, const char *msg) argument
184 vec[2].iov_base = (void *) msg;
185 vec[2].iov_len = strlen(msg) + 1;
/system/core/libnl_2/
H A Dnetlink.c29 int nl_send_auto_complete(struct nl_sock *sk, struct nl_msg *msg) argument
31 struct nlmsghdr *nlh = msg->nm_nlh;
48 return nl_send(sk, msg);
65 struct msghdr msg; local
78 msg.msg_name = (void *) &sk->s_peer;
79 msg.msg_namelen = sizeof(sk->s_peer);
80 msg.msg_iov = &recvmsg_iov;
81 msg.msg_iovlen = 1;
82 msg.msg_control = NULL;
83 msg
117 struct nl_msg *msg; local
204 nl_send(struct nl_sock *sk, struct nl_msg *msg) argument
217 nl_send_iovec(struct nl_sock *sk, struct nl_msg *msg, struct iovec *iov, unsigned iovlen) argument
242 nl_sendmsg(struct nl_sock *sk, struct nl_msg *msg, struct msghdr *hdr) argument
[all...]
H A Dattr.c21 #include "netlink/msg.h"
75 struct nlattr *nla_nest_start(struct nl_msg *msg, int attrtype) argument
77 struct nlattr *start = (struct nlattr *)nlmsg_tail(msg->nm_nlh);
80 rc = nla_put(msg, attrtype, 0, NULL);
88 int nla_nest_end(struct nl_msg *msg, struct nlattr *start) argument
91 start->nla_len = (unsigned char *)nlmsg_tail(nlmsg_hdr(msg)) -
151 int nla_put(struct nl_msg *msg, int attrtype, int datalen, const void *data) argument
156 nla = nla_reserve(msg, attrtype, datalen);
169 * to the message msg nested in a container of the type attrtype. The
171 int nla_put_nested(struct nl_msg *msg, in argument
189 nla_reserve(struct nl_msg *msg, int attrtype, int data_len) argument
[all...]
/system/core/sh/
H A Derror.c125 exvwarning(int sv_errno, const char *msg, va_list ap) argument
137 if (msg != NULL) {
138 doformat(&errout, msg, ap);
154 exverror(int cond, const char *msg, va_list ap) argument
160 if (msg) {
162 TRACEV((msg, ap));
167 if (msg)
168 exvwarning(-1, msg, ap);
177 error(const char *msg, ...) argument
181 va_start(ap, msg);
189 exerror(int cond, const char *msg, ...) argument
286 const char *msg; /* text describing the error */ member in struct:errname
[all...]
/system/core/toolbox/
H A Dlsof.c144 char msg[BUF_MAX]; local
145 snprintf(msg, sizeof(msg), "%s (opendir: %s)", info->path, strerror(errno));
148 "", "", "", "", msg);
/system/core/libnl_2/genl/
H A Dgenl.c46 void *genlmsg_put(struct nl_msg *msg, uint32_t pid, uint32_t seq, int family, argument
56 if ((sizeof(struct nl_msg) + new_size) > msg->nm_size)
60 nlh = msg->nm_nlh;
98 struct msghdr msg; local
128 msg.msg_name = (void *) &sock->s_peer;
129 msg.msg_namelen = sizeof(sock->s_peer);
130 msg.msg_iov = &sendmsg_iov;
131 msg.msg_iovlen = 1; /* Only sending one iov */
132 msg.msg_control = NULL;
133 msg
[all...]
/system/vold/
H A DCommandListener.cpp247 char msg[1024]; local
248 snprintf(msg, sizeof(msg), "%d %s", pid, processName);
249 cli->sendMsg(ResponseCode::StorageUsersListResult, msg, false);
518 char msg[255]; local
526 snprintf(msg, sizeof(msg), "%s %u %u", (r ? "ready" : "not-ready"), mirrorPos, maxSize);
527 cli->sendMsg(ResponseCode::XwarpStatusResult, msg, false);
602 char msg[255]; local
603 snprintf(msg, sizeo
[all...]
H A DDirectVolume.cpp151 char msg[255]; local
173 snprintf(msg, sizeof(msg), "Volume %s %s disk inserted (%d:%d)",
176 msg, false);
277 char msg[255]; local
280 snprintf(msg, sizeof(msg), "Volume %s %s disk removed (%d:%d)",
283 msg, false);
290 char msg[255]; local
311 snprintf(msg, sizeo
[all...]
/system/core/debuggerd/
H A Ddebuggerd.c209 debugger_msg_t msg; local
210 status = TEMP_FAILURE_RETRY(read(fd, &msg, sizeof(msg)));
215 if (status != sizeof(msg)) {
220 out_request->action = msg.action;
221 out_request->tid = msg.tid;
226 if (msg.action == DEBUGGER_ACTION_CRASH) {
237 || (cr.uid == AID_SYSTEM && msg.action == DEBUGGER_ACTION_DUMP_BACKTRACE)) {
/system/core/init/
H A Dproperty_service.c344 prop_msg msg; local
364 r = TEMP_FAILURE_RETRY(recv(s, &msg, sizeof(msg), 0));
366 ERROR("sys_prop: mis-match msg size recieved: %d expected: %d errno: %d\n",
372 switch(msg.cmd) {
374 msg.name[PROP_NAME_MAX-1] = 0;
375 msg.value[PROP_VALUE_MAX-1] = 0;
377 if(memcmp(msg.name,"ctl.",4) == 0) {
381 if (check_control_perms(msg.value, cr.uid, cr.gid)) {
382 handle_control_message((char*) msg
[all...]

Completed in 4369 milliseconds

12