Lines Matching refs:reply
351 static int is_valid_reply(dhcp_msg *msg, dhcp_msg *reply, int sz) in is_valid_reply() argument
357 if (reply->op != OP_BOOTREPLY) { in is_valid_reply()
358 if (verbose) ALOGD("Wrong Op %d != %d\n", reply->op, OP_BOOTREPLY); in is_valid_reply()
361 if (reply->xid != msg->xid) { in is_valid_reply()
362 if (verbose) ALOGD("Wrong Xid 0x%x != 0x%x\n", ntohl(reply->xid), in is_valid_reply()
366 if (reply->htype != msg->htype) { in is_valid_reply()
367 if (verbose) ALOGD("Wrong Htype %d != %d\n", reply->htype, msg->htype); in is_valid_reply()
370 if (reply->hlen != msg->hlen) { in is_valid_reply()
371 if (verbose) ALOGD("Wrong Hlen %d != %d\n", reply->hlen, msg->hlen); in is_valid_reply()
374 if (memcmp(msg->chaddr, reply->chaddr, msg->hlen)) { in is_valid_reply()
375 if (verbose) ALOGD("Wrong chaddr %x != %x\n", *(reply->chaddr),*(msg->chaddr)); in is_valid_reply()
391 dhcp_msg reply; in dhcp_init_ifc() local
473 r = receive_packet(s, &reply); in dhcp_init_ifc()
485 dump_dhcp_msg(&reply, r); in dhcp_init_ifc()
487 decode_dhcp_msg(&reply, r, &info); in dhcp_init_ifc()
490 valid_reply = is_valid_reply(&discover_msg, &reply, r); in dhcp_init_ifc()
492 valid_reply = is_valid_reply(&request_msg, &reply, r); in dhcp_init_ifc()