Home | History | Annotate | Download | only in libnetutils

Lines Matching refs:reply

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