| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
In netd, both CommandListener and NetlinkHandler thread will use
libnetutils' function. Original implementation will use a global
file descriptor in mutiple functions. It will cause problems when
these functions are invoked from different thread.
This change will make NetlinkHandler thread use local file
descriptor instead of global one.
CRs-fixed: 853158
Change-Id: I66458e99e48197e7a56cbb212344423290db12bd
|
|
|
|
|
|
| |
Some devices need gateway properties to be set inorder to setup route correctly
Change-Id: I45dce29de916f07eb79fad77dec914787c78e7ce
|
|\
| |
| |
| |
| |
| |
| | |
libnetutils\' do_dhcp."
* commit 'f91c06646ed836c25aeacc4332851c53cd1e0861':
Add a command to call libnetutils' do_dhcp.
|
| |
| |
| |
| |
| |
| | |
Useful for wifi bringup.
Change-Id: Ib1d1b1d15cb9ce57119457a780e169b8f98987c2
|
|\ \
| |/
| |
| |
| |
| |
| | |
address"
* commit 'c92420b23b3006ed2e1ece6020dc9d6daa7bf336':
Improving the time to wait for assigning IP address
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Framework always spends 600msec for getting IP address.
DhcpStateMachine.runDhcp calls NetworkUtils.stopDhcp.
After that, it calls NetworkUtils.runDhcp.
In this case, wait_for_property of dhcp_utils.c calls three times.
At least three times, usleep is called.
So move usleep statement after property_get statement.
Change-Id: I77ffb9a5a64875b47bb528b494bb60b68c1acb5a
|
|\ \ \
| |/ /
|/| |
| | | |
Change-Id: I4d3d55dac794db8fa81d3048e41ac589920f43b8
|
| | |
| | |
| | |
| | |
| | |
| | | |
Also: clean up some stray trailing whitespace.
Change-Id: I12471b6059971c9c25d7ff6475bfad43cbee44f6
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Separate out fetching DHCP results from starting the daemon
(for either discover or renew).
Renamed dhcp_do_request() to dhcp_start().
Renamed dhcp_do_request_renew() to dhcp_start_renew().
Added new dhcp_get_results().
Callers of the prior versions of dhcp_do_request* now separately
call dhcp_get_results().
Bug: 19422416
Change-Id: I05447853d444015e6014661dda1bb177b58fe463
|
| |/
|/|
| |
| | |
Change-Id: I3e18f34d08a6443aaf55d7c91c27867840ac1773
|
| |
| |
| |
| |
| | |
Bug: 19340053
Change-Id: Id0d866e6195ed4752b4be6081eeb2aab8b1dbe9a
|
| |
| |
| |
| |
| |
| |
| | |
Only "netcfg" for a list of interfaces and "netcfg <interface> dhcp" still
seem to be used.
Change-Id: I9f0b580474258fa648deb5287f98d8ec5533ca6f
|
| |
| |
| |
| |
| |
| | |
This reverts commit f8e83054cb8a8b13ee84a4aeeaa0a2fd8debca81.
Change-Id: Iede772f96ff9008277df433dcbb5f6603de65283
|
| |
| |
| |
| |
| |
| |
| | |
Only "netcfg" for a list of interfaces and "netcfg <interface> dhcp" still
seem to be used.
Change-Id: Iaf499c06b09ffe5e0925339b9cd6e502f3234a86
|
| |
| |
| |
| | |
Change-Id: Ia41756e607663d056e7d2fdd7ecbec7e5841a913
|
|/
|
|
|
|
|
| |
For build-system CFLAGS clean-up, remove unused functions and
variables.
Change-Id: I40a78d5a532dc32b53beb1cfc1b7645bab8add16
|
|
|
|
|
| |
Bug: 15414453
Change-Id: Ibf1f052e12b88838a328148e25817a96f10d50f5
|
|
|
|
| |
Change-Id: I5b9d23eea7e850ab5a1f3a4e6c4f8ecdc3844864
|
|
|
|
|
|
|
|
|
| |
http://ag/507249 removed a bunch of supposedly dead (unused) code. It turns out
at least ifc_disable() is being used in some protected partner branches. Put
back that as well as ifc_enable() to keep it symmetric.
Bug: 15413389
Change-Id: Ibec83a66e5d9079876ccf36d250b95b7c0294c03
|
|
|
|
|
| |
Bug: 15413389
Change-Id: I315468832ef18ffc84174e54774ab63b86d284dc
|
|\
| |
| |
| |
| | |
* commit '04482eaba2584c3a05bff4a6647f0a2e55475a91':
libnetutils: Turn on -Werror
|
| |
| |
| |
| |
| |
| |
| | |
- Get rid of a pair of out of range comparison warnings.
- Turn on -Werror for compilation
Change-Id: Ie6754f41f9348852a02cc0ff35befb5a76ac2883
|
|\ \
| |/
| |
| |
| |
| |
| | |
-Werror""
* commit '2a7ce0bc7da0201c4b228d04d900ec440bfdcf8b':
Revert "libnetutils: Turn on -Werror"
|
| |
| |
| |
| |
| |
| | |
This reverts commit 249c26de823be0f9a84a9f092c776bcd9830fba5.
Change-Id: I2a56c574fa8d842d5f3c51fd57ecf078838fcfec
|
|\ \
| |/
| |
| |
| | |
* commit 'd746519443e37d7dde104779253830e92ae72c8e':
libnetutils: Turn on -Werror
|
| |
| |
| |
| | |
Change-Id: Ie6754f41f9348852a02cc0ff35befb5a76ac2882
|
| |\
| | |
| | |
| | | |
Change-Id: I5c469a4b738629d99d721cad7ded02d6c35f56d5
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Per http://tools.ietf.org/html/rfc768:
If the computed checksum is zero, it is transmitted as all ones (the
equivalent in one's complement arithmetic). An all zero transmitted
checksum value means that the transmitter generated no checksum (for
debugging or for higher level protocols that don't care).
Bug: 10642341
Change-Id: Ib6296dcf3f420f87227047a645c99d9f7ea0d437
|
|\ \ \
| |/ /
| | /
| |/
|/|
| |
| | |
headers."
* commit 'd97a34af49f6beafc21d5f459ea62b499544f9f3':
Fix libnetutils to build with clean uapi headers.
|
| |
| |
| |
| |
| |
| |
| | |
(And old ones too.)
Bug: 11559337
Change-Id: Ie61218055bbe07655a9d53c539aa47b85098e42c
|
|/
|
|
|
| |
Change-Id: I517fd1f62d451b07466a21a2b770d9ce389dac19
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
|
|\
| |
| |
| | |
Change-Id: I949cce9e1f14cd33162b81fbc6728c64e2b09b7c
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| | |
Bug: 8580410
Change-Id: Iab3a9b4307f207c14a04a922cc7350c54e60e9ad
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | | |
bug:5958524
Change-Id: I61c25e23d21e92653ec9b874d3d456a330d8fe05
|
|\ \ \
| |/ /
|/| /
| |/
| |
| |
| | |
set"
* commit 'bab2ba3e730d610883added31ff806da352cbb07':
Fix dhcpcd startup when net.hostname is not set
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| | |
Change-Id: Icbc1859125bae0bc222685bfbc18af38273d6827
|
| |
| |
| |
| |
| |
| | |
Remove unnecessary DHCP properties
Change-Id: I27b5d0a2d8fd67c911d04bb2d18dc1b3f10e7c2a
|
|/
|
|
|
|
|
| |
This property is set by the dhcpcd daemon.
bug:6799630
Change-Id: I21002e286819cff420ec72e3857764e5f58ecfe4
|
|\
| |
| |
| |
| | |
* commit 'd2e826b5192f3b964c893b8230cee1d8bdb84071':
Fixed an unused param warning
|
| |
| |
| |
| |
| |
| |
| |
| | |
libnetutils had a single warning. Fixed it to make it clean.
Change-Id: I9297e556657a38dbdd7d1d0ac4bc3574801d5ac9
Author: Edwin Vane <edwin.vane@intel.com>
Reviewed-by: Kevin P Schoedel <kevin.p.schoedel@intel.com>
|
| |
| |
| |
| |
| | |
Signed-off-by: Chris Dearman <chris@mips.com>
Change-Id: Ibc288458baf2f75c5b19a46e4c97ee59521cc9a5
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| | |
Code using ifc_reset_connections api needs to have access to
predefined masks for reset_mask parameter
Change-Id: I90bc5e1b62ae4a88501c8ad4e353c0d93d319579
|
|/
|
|
|
| |
Change-Id: Idd5c8734fafd27c76f61820f223627af4c71a271
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Bug: 6344821
Change-Id: Iebce3e1b36175fc88f44e18db647c43b1245f18f
|