Lines Matching refs:x
166 uint8_t *x; in decode_dhcp_msg() local
180 x = msg->options + 4; in decode_dhcp_msg()
183 opt = *x++; in decode_dhcp_msg()
191 optlen = *x++; in decode_dhcp_msg()
200 memcpy(&mask, x, 4); in decode_dhcp_msg()
205 if (optlen >= 4) memcpy(&info->gateway, x, 4); in decode_dhcp_msg()
208 if (optlen >= 4) memcpy(&info->dns1, x + 0, 4); in decode_dhcp_msg()
209 if (optlen >= 8) memcpy(&info->dns2, x + 4, 4); in decode_dhcp_msg()
213 memcpy(&info->lease, x, 4); in decode_dhcp_msg()
218 if (optlen >= 4) memcpy(&info->serveraddr, x, 4); in decode_dhcp_msg()
221 info->type = *x; in decode_dhcp_msg()
226 x += optlen; in decode_dhcp_msg()
249 unsigned char *x; in dump_dhcp_msg() local
283 unsigned char x = msg->sname[n]; in dump_dhcp_msg() local
284 if ((x < ' ') || (x > 127)) { in dump_dhcp_msg()
285 if (x == 0) break; in dump_dhcp_msg()
292 unsigned char x = msg->file[n]; in dump_dhcp_msg() local
293 if ((x < ' ') || (x > 127)) { in dump_dhcp_msg()
294 if (x == 0) break; in dump_dhcp_msg()
305 x = msg->options + 4; in dump_dhcp_msg()
308 if (*x == 0) { in dump_dhcp_msg()
309 x++; in dump_dhcp_msg()
313 if (*x == OPT_END) { in dump_dhcp_msg()
317 optsz = x[1]; in dump_dhcp_msg()
319 if (x[0] == OPT_DOMAIN_NAME || x[0] == OPT_MESSAGE) { in dump_dhcp_msg()
325 memcpy(buf, &x[2], n); in dump_dhcp_msg()
328 hex2str(buf, sizeof(buf), &x[2], optsz); in dump_dhcp_msg()
330 if (x[0] == OPT_MESSAGE_TYPE) in dump_dhcp_msg()
331 name = dhcp_type_to_name(x[2]); in dump_dhcp_msg()
334 ALOGD("op %d len %d {%s} %s", x[0], optsz, buf, name == NULL ? "" : name); in dump_dhcp_msg()
336 x = x + optsz + 2; in dump_dhcp_msg()