diff options
author | repo sync <isheriff@google.com> | 2011-08-10 15:44:47 -0700 |
---|---|---|
committer | repo sync <isheriff@google.com> | 2011-08-14 17:20:21 -0700 |
commit | 0d3a47d979ac35a49b2a2da9e80e16bd37aab877 (patch) | |
tree | 24b8afc13c1915a0636cce5c3308c362738d266c /dhcpcd.c | |
parent | 98bf139a07f34b42c5b5f935f48c981a103d965d (diff) | |
download | external_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.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); |