libnetutils: Rename dhcptool to dhcpdbg

Also print warning that IP will not allow full connectivity.

Test: Manual

Change-Id: I264c478f07236108a01e766c5264897c2000f008
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
Dmitry Shmidt 2017-05-17 10:47:28 -07:00
parent 75a8233c7e
commit d3b2d4ff2e
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ cc_library_shared {
}
cc_binary {
name: "dhcptool",
name: "dhcpdbg",
srcs: [
"dhcptool.c",

View File

@ -40,7 +40,7 @@ int main(int argc, char* argv[]) {
if (rc) {
err(errno, "dhcptool %s: do_dhcp failed", interface);
}
warn("IP assignment is for debug purposes ONLY");
ifc_close();
return rc ? EXIT_FAILURE : EXIT_SUCCESS;