aboutsummaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorrepo sync <isheriff@google.com>2011-08-10 15:44:47 -0700
committerrepo sync <isheriff@google.com>2011-08-14 17:20:21 -0700
commit0d3a47d979ac35a49b2a2da9e80e16bd37aab877 (patch)
tree24b8afc13c1915a0636cce5c3308c362738d266c /dhcpcd.c
parent98bf139a07f34b42c5b5f935f48c981a103d965d (diff)
downloadexternal_dhcpcd-0d3a47d979ac35a49b2a2da9e80e16bd37aab877.zip
external_dhcpcd-0d3a47d979ac35a49b2a2da9e80e16bd37aab877.tar.gz
external_dhcpcd-0d3a47d979ac35a49b2a2da9e80e16bd37aab877.tar.bz2
Provide an option to disable route setup with dhcp
Framework manages route setup for p2p. Bug: 5002384 Change-Id: I7489ebed1c268744a3bf8ea13bf5c55d200fe3e7
Diffstat (limited to 'dhcpcd.c')
-rw-r--r--dhcpcd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index df3e790..15c087b 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -92,6 +92,8 @@ int ifac = 0;
char **ifav = NULL;
int ifdc = 0;
char **ifdv = NULL;
+/* If set, avoid routes after a DHCP success */
+int avoid_routes = 0;
static char **margv;
static int margc;
@@ -151,7 +153,7 @@ read_pid(void)
static void
usage(void)
{
- printf("usage: "PACKAGE" [-dgknpqwxyADEGHJKLOTV] [-c script] [-f file]"
+ printf("usage: "PACKAGE" [-adgknpqwxyADEGHJKLOTV] [-c script] [-f file]"
" [-e var=val]\n"
" [-h hostname] [-i classID ] [-l leasetime]"
" [-m metric] [-o option]\n"
@@ -1791,6 +1793,9 @@ main(int argc, char **argv)
case 'U':
i = 2;
break;
+ case 'a':
+ avoid_routes = 1;
+ break;
case 'V':
print_options();
exit(EXIT_SUCCESS);