summaryrefslogtreecommitdiffstats
path: root/libnetutils/dhcp_utils.c
Commit message (Collapse)AuthorAgeFilesLines
* Libnetutils: Remove unused functions & variablesAndreas Gampe2014-11-241-9/+0
| | | | | | | For build-system CFLAGS clean-up, remove unused functions and variables. Change-Id: I40a78d5a532dc32b53beb1cfc1b7645bab8add16
* libnetutils: Get mtu together with dhcp session resultsDmitry Shmidt2013-08-021-5/+12
| | | | | Change-Id: I517fd1f62d451b07466a21a2b770d9ce389dac19 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* resolved conflicts for merge of c0df50af to stage-aosp-masterColin Cross2013-06-101-2/+1
|\ | | | | | | Change-Id: I949cce9e1f14cd33162b81fbc6728c64e2b09b7c
| * fix bad return value in dhcp_do_request_*Michael Wu2013-06-051-2/+1
| | | | | | | | | | | | | | | | | | | | | | 1. bad return status make it return uninitialized prefixLength with a magic number in android_net_utils_runDhcpCommon() 2. it will make DhcpInfoInternal.makeLinkAddress() to throw IllegalArgumentException when try to connect a Wifi AP 3. the exception will make system reboot, of cource it random. Change-Id: Iabc0cd5b69c1316f4eeae0aa1b8a91444dca4562 Signed-off-by: Michael Wu <michaelstay@gmail.com>
* | Merge "Support 4 dns servers, up from 2"Robert Greenwalt2013-01-111-14/+12
|\ \
| * | Support 4 dns servers, up from 2Robert Greenwalt2013-01-101-14/+12
| | | | | | | | | | | | | | | bug:5958524 Change-Id: I61c25e23d21e92653ec9b874d3d456a330d8fe05
* | | am bab2ba3e: am 6d9589c3: Merge "Fix dhcpcd startup when net.hostname is not ↵Elliott Hughes2013-01-071-1/+1
|\ \ \ | |/ / |/| / | |/ | | | | | | set" * commit 'bab2ba3e730d610883added31ff806da352cbb07': Fix dhcpcd startup when net.hostname is not set
| * Fix dhcpcd startup when net.hostname is not setMatt Gumbel2013-01-041-1/+1
| | | | | | | | | | | | | | | | | | Commit 62d6f74 swapped p2p_interface and DHCP_CONFIG_PATH erroneously. This reverts them to their correct ordering and makes dhcpcd startup work again. Change-Id: Iea033a7e0dad98bb2a63fb39755330675cfbb0ab Signed-off-by: Matt Gumbel <matthew.k.gumbel@intel.com>
* | Handle empty gatewaysIrfan Sheriff2012-12-071-1/+1
| | | | | | | | Change-Id: Icbc1859125bae0bc222685bfbc18af38273d6827
* | Remove dead codeIrfan Sheriff2012-12-061-7/+0
| | | | | | | | | | | | Remove unnecessary DHCP properties Change-Id: I27b5d0a2d8fd67c911d04bb2d18dc1b3f10e7c2a
* | Read domain name from dhcp system propRobert Greenwalt2012-11-131-5/+12
|/ | | | | | | This property is set by the dhcpcd daemon. bug:6799630 Change-Id: I21002e286819cff420ec72e3857764e5f58ecfe4
* dhcp_utils: Add -f dhcpcd.conf processingDmitry Shmidt2012-07-231-5/+7
| | | | | Change-Id: Idd5c8734fafd27c76f61820f223627af4c71a271 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Reuse system properties for p2pIrfan Sheriff2012-05-231-43/+60
| | | | | | | | | | | | p2p interfaces keep increasing. Reuse a single "p2p" phrase to track all p2p specific properties. Longer term, we will remove the use of system properties for dhcp Also, fixed some warnings Bug: 6522164 Change-Id: Ibe9a68a1b5db9d5b0fe88c854d9f94b1b9930970
* Pipe DHCP vendor info towards framework.Jeff Sharkey2012-04-191-6/+14
| | | | | Bug: 6344821 Change-Id: Iebce3e1b36175fc88f44e18db647c43b1245f18f
* Merge "Fix dhcp comments"Irfan Sheriff2011-11-091-2/+10
|\
| * Fix dhcp commentsIrfan Sheriff2011-11-091-2/+10
| | | | | | | | Change-Id: Ia99b2c10ff6cf8c75c23db49f1e9cf7a043141cc
* | Wimax: wimax related changes for libnetutilstk.mun2011-11-071-2/+2
|/ | | | | | | | - Modified dhcp renew code for the new conenctivity changes in ICS Change-Id: I614dfc62a875b79dbd8b7c46f4d87f366a3c3661 Signed-off-by: tk.mun <tk.mun@samsung.com> bug:5486930
* Update dhcp for p2prepo sync2011-08-121-8/+35
| | | | | Bug: 5002384 Change-Id: I4ee4f80e2bc2966aa30d1344182d90f30117fbae
* Use DHCP server as gateway when it is absentIrfan Sheriff2011-04-151-3/+9
| | | | | | | Some routers can return 0.0.0.0 as gateway address, use DHCP server as gateway in such instances Change-Id: I7e8db8e619475efce53ce391f77f2c13c3b7268c
* Add per interface dhcp client supportTK MUN2011-03-231-7/+81
| | | | | | | | Added when using dhcp on both wimax and wifi. But should be useful across multiple services running dhcp now. Also adds a renewal api Change-Id: Ic850a612dd429cd675b5b0224ff58895f9d8e4d9 Signed-off-by: TK MUN <tk.mun@samsung.com>
* Change our dhcp interface to be IPv6 compat.Robert Greenwalt2011-01-251-46/+51
| | | | | | | | Doesn't do IPv6, but removes v4-specific structures from the framework (netmask, ints for addrs) bug:2542681 Change-Id: I1110e6f32d42a472b104835a4298e18b391db0a7
* Reduce polling interval to 200msIrfan Sheriff2010-12-211-3/+3
| | | | | | | | DHCP success can take up to 2 seconds to be reported to the statemachine. Move wait time after check and reduce it to 200ms Change-Id: I6b2546f80435a84ee6f44f4d91f348bacfdc8433
* Add missing headers for compilation on x86 targetsOlivier Bailly2010-11-171-0/+1
| | | | Change-Id: I5f4dc797b353a0f01fa00d38375ec303bf863254
* - creates proper ifc.h and dhcp.h headers for libnetutilsSzymon Jakubczak2010-08-251-0/+14
| | | | | | | | | | | | - adds ifc_set_hwaddr - adds hwaddr command to netcfg - code reuse: dhcp_configure calls ifc_configure; inet_ntoa is used for printing - consistency: use net.XXX.dnsX properties in favor of dhcp.XXX.dnsX properties (see related change to WifiStateTracker) - updated system/core/nexus to use new headers, although not sure if anybody still uses nexus Change-Id: Idd70c0ac6e89b38e86816578c33eff805d30cac4
* Revert "- creates proper ifc.h and dhcp.h headers for libnetutils"Jean-Baptiste Queru2010-08-181-14/+0
| | | | This reverts commit c88e09cb98fb3690c3cf49f5a825532e0d9bf300.
* merge from open-source masterThe Android Open Source Project2010-06-151-0/+14
|\ | | | | | | Change-Id: I8cfc9c0b699eceef77a905ca2f8cbdb1ab06bf1d
| * - creates proper ifc.h and dhcp.h headers for libnetutilsSzymon Jakubczak2010-06-091-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | - adds ifc_set_hwaddr - adds hwaddr command to netcfg - code reuse: dhcp_configure calls ifc_configure; inet_ntoa is used for printing - consistency: use net.XXX.dnsX properties in favor of dhcp.XXX.dnsX properties (see related change to WifiStateTracker) - updated system/core/nexus to use new headers, although not sure if anybody still uses nexus Change-Id: Idd70c0ac6e89b38e86816578c33eff805d30cac4
* | dhcp: Add hostname supportDmitry Shmidt2009-12-141-3/+11
|/ | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+207
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-207/+0
|
* auto import from //branches/cupcake/...@131421The Android Open Source Project2009-02-131-0/+5
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-0/+16
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+186