diff options
author | Elliott Hughes <enh@google.com> | 2015-02-03 19:56:35 +0000 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2015-02-03 19:56:35 +0000 |
commit | c463025a19aff3f9f92cffa3de6462316e8407a7 (patch) | |
tree | bd4294af322a646c4f30eb8528095dffa2d014d7 /libnetutils/dhcpclient.c | |
parent | f8e83054cb8a8b13ee84a4aeeaa0a2fd8debca81 (diff) | |
download | system_core-c463025a19aff3f9f92cffa3de6462316e8407a7.zip system_core-c463025a19aff3f9f92cffa3de6462316e8407a7.tar.gz system_core-c463025a19aff3f9f92cffa3de6462316e8407a7.tar.bz2 |
Revert "Remove netcfg's unused options."
This reverts commit f8e83054cb8a8b13ee84a4aeeaa0a2fd8debca81.
Change-Id: Iede772f96ff9008277df433dcbb5f6603de65283
Diffstat (limited to 'libnetutils/dhcpclient.c')
-rw-r--r-- | libnetutils/dhcpclient.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libnetutils/dhcpclient.c b/libnetutils/dhcpclient.c index a05b7cb..700b02f 100644 --- a/libnetutils/dhcpclient.c +++ b/libnetutils/dhcpclient.c @@ -353,28 +353,28 @@ static int send_message(int sock, int if_index, dhcp_msg *msg, int size) static int is_valid_reply(dhcp_msg *msg, dhcp_msg *reply, int sz) { if (sz < DHCP_MSG_FIXED_SIZE) { - if (verbose) ALOGD("Wrong size %d != %d\n", sz, DHCP_MSG_FIXED_SIZE); + if (verbose) ALOGD("netcfg: Wrong size %d != %d\n", sz, DHCP_MSG_FIXED_SIZE); return 0; } if (reply->op != OP_BOOTREPLY) { - if (verbose) ALOGD("Wrong Op %d != %d\n", reply->op, OP_BOOTREPLY); + if (verbose) ALOGD("netcfg: Wrong Op %d != %d\n", reply->op, OP_BOOTREPLY); return 0; } if (reply->xid != msg->xid) { - if (verbose) ALOGD("Wrong Xid 0x%x != 0x%x\n", ntohl(reply->xid), - ntohl(msg->xid)); + if (verbose) ALOGD("netcfg: Wrong Xid 0x%x != 0x%x\n", ntohl(reply->xid), + ntohl(msg->xid)); return 0; } if (reply->htype != msg->htype) { - if (verbose) ALOGD("Wrong Htype %d != %d\n", reply->htype, msg->htype); + if (verbose) ALOGD("netcfg: Wrong Htype %d != %d\n", reply->htype, msg->htype); return 0; } if (reply->hlen != msg->hlen) { - if (verbose) ALOGD("Wrong Hlen %d != %d\n", reply->hlen, msg->hlen); + if (verbose) ALOGD("netcfg: Wrong Hlen %d != %d\n", reply->hlen, msg->hlen); return 0; } if (memcmp(msg->chaddr, reply->chaddr, msg->hlen)) { - if (verbose) ALOGD("Wrong chaddr %x != %x\n", *(reply->chaddr),*(msg->chaddr)); + if (verbose) ALOGD("netcfg: Wrong chaddr %x != %x\n", *(reply->chaddr),*(msg->chaddr)); return 0; } return 1; |