summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Shmidt2017-05-17 12:47:28 -0500
committerDmitry Shmidt2017-05-17 12:47:28 -0500
commitd3b2d4ff2e2a3b9ae878efa5d654e535290dbe4f (patch)
treee6760b07e088315a43ba1475f8ed121c5cc73291 /libnetutils
parent75a8233c7e7780af04aac525e2fccdbcb33fdb0b (diff)
downloadplatform-system-core-d3b2d4ff2e2a3b9ae878efa5d654e535290dbe4f.tar.gz
platform-system-core-d3b2d4ff2e2a3b9ae878efa5d654e535290dbe4f.tar.xz
platform-system-core-d3b2d4ff2e2a3b9ae878efa5d654e535290dbe4f.zip
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>
Diffstat (limited to 'libnetutils')
-rw-r--r--libnetutils/Android.bp2
-rw-r--r--libnetutils/dhcptool.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libnetutils/Android.bp b/libnetutils/Android.bp
index 68a74a092..0caf14535 100644
--- a/libnetutils/Android.bp
+++ b/libnetutils/Android.bp
@@ -19,7 +19,7 @@ cc_library_shared {
19} 19}
20 20
21cc_binary { 21cc_binary {
22 name: "dhcptool", 22 name: "dhcpdbg",
23 23
24 srcs: [ 24 srcs: [
25 "dhcptool.c", 25 "dhcptool.c",
diff --git a/libnetutils/dhcptool.c b/libnetutils/dhcptool.c
index b3896c391..280b97722 100644
--- a/libnetutils/dhcptool.c
+++ b/libnetutils/dhcptool.c
@@ -40,7 +40,7 @@ int main(int argc, char* argv[]) {
40 if (rc) { 40 if (rc) {
41 err(errno, "dhcptool %s: do_dhcp failed", interface); 41 err(errno, "dhcptool %s: do_dhcp failed", interface);
42 } 42 }
43 43 warn("IP assignment is for debug purposes ONLY");
44 ifc_close(); 44 ifc_close();
45 45
46 return rc ? EXIT_FAILURE : EXIT_SUCCESS; 46 return rc ? EXIT_FAILURE : EXIT_SUCCESS;