diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2017-05-17 10:47:28 -0700 |
---|---|---|
committer | Dmitry Shmidt <dimitrysh@google.com> | 2017-05-17 10:47:28 -0700 |
commit | d3b2d4ff2e2a3b9ae878efa5d654e535290dbe4f (patch) | |
tree | e6760b07e088315a43ba1475f8ed121c5cc73291 /libnetutils | |
parent | 75a8233c7e7780af04aac525e2fccdbcb33fdb0b (diff) | |
download | core-d3b2d4ff2e2a3b9ae878efa5d654e535290dbe4f.tar.gz core-d3b2d4ff2e2a3b9ae878efa5d654e535290dbe4f.tar.bz2 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.bp | 2 | ||||
-rw-r--r-- | libnetutils/dhcptool.c | 2 |
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 { } cc_binary { - name: "dhcptool", + name: "dhcpdbg", srcs: [ "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[]) { 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; |