Lines Matching refs:x
168 uint8_t *x; in decode_dhcp_msg() local
182 x = msg->options + 4; in decode_dhcp_msg()
185 opt = *x++; in decode_dhcp_msg()
193 optlen = *x++; in decode_dhcp_msg()
202 memcpy(&mask, x, 4); in decode_dhcp_msg()
207 if (optlen >= 4) memcpy(&info->gateway, x, 4); in decode_dhcp_msg()
210 if (optlen >= 4) memcpy(&info->dns1, x + 0, 4); in decode_dhcp_msg()
211 if (optlen >= 8) memcpy(&info->dns2, x + 4, 4); in decode_dhcp_msg()
215 memcpy(&info->lease, x, 4); in decode_dhcp_msg()
220 if (optlen >= 4) memcpy(&info->serveraddr, x, 4); in decode_dhcp_msg()
223 info->type = *x; in decode_dhcp_msg()
228 x += optlen; in decode_dhcp_msg()
251 unsigned char *x; in dump_dhcp_msg() local
285 unsigned char x = msg->sname[n]; in dump_dhcp_msg() local
286 if ((x < ' ') || (x > 127)) { in dump_dhcp_msg()
287 if (x == 0) break; in dump_dhcp_msg()
294 unsigned char x = msg->file[n]; in dump_dhcp_msg() local
295 if ((x < ' ') || (x > 127)) { in dump_dhcp_msg()
296 if (x == 0) break; in dump_dhcp_msg()
307 x = msg->options + 4; in dump_dhcp_msg()
310 if (*x == 0) { in dump_dhcp_msg()
311 x++; in dump_dhcp_msg()
315 if (*x == OPT_END) { in dump_dhcp_msg()
319 optsz = x[1]; in dump_dhcp_msg()
321 if (x[0] == OPT_DOMAIN_NAME || x[0] == OPT_MESSAGE) { in dump_dhcp_msg()
327 memcpy(buf, &x[2], n); in dump_dhcp_msg()
330 hex2str(buf, &x[2], optsz); in dump_dhcp_msg()
332 if (x[0] == OPT_MESSAGE_TYPE) in dump_dhcp_msg()
333 name = dhcp_type_to_name(x[2]); in dump_dhcp_msg()
336 ALOGD("op %d len %d {%s} %s", x[0], optsz, buf, name == NULL ? "" : name); in dump_dhcp_msg()
338 x = x + optsz + 2; in dump_dhcp_msg()