Home | History | Annotate | Download | only in libnetutils

Lines Matching defs:reply

353 static int is_valid_reply(dhcp_msg *msg, dhcp_msg *reply, int sz)
359 if (reply->op != OP_BOOTREPLY) {
360 if (verbose) ALOGD("Wrong Op %d != %d\n", reply->op, OP_BOOTREPLY);
363 if (reply->xid != msg->xid) {
364 if (verbose) ALOGD("Wrong Xid 0x%x != 0x%x\n", ntohl(reply->xid),
368 if (reply->htype != msg->htype) {
369 if (verbose) ALOGD("Wrong Htype %d != %d\n", reply->htype, msg->htype);
372 if (reply->hlen != msg->hlen) {
373 if (verbose) ALOGD("Wrong Hlen %d != %d\n", reply->hlen, msg->hlen);
376 if (memcmp(msg->chaddr, reply->chaddr, msg->hlen)) {
377 if (verbose) ALOGD("Wrong chaddr %x != %x\n", *(reply->chaddr),*(msg->chaddr));
393 dhcp_msg reply;
475 r = receive_packet(s, &reply);
487 dump_dhcp_msg(&reply, r);
489 decode_dhcp_msg(&reply, r, &info);
492 valid_reply = is_valid_reply(&discover_msg, &reply, r);
494 valid_reply = is_valid_reply(&request_msg, &reply, r);
497 printerr("invalid reply\n");