summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add OWNERS.Elliott Hughes2017-12-071-0/+3
| | | | | | Bug: N/A Test: N/A Change-Id: Ie785058c0f5eb9b4086c98ccba6e63e3ed411b65
* Mark the modules as VNDK in Android.bpJustin Yun2017-09-141-0/+3
| | | | | | | | | | | | | | | | | | | As a VNDK module, Android.bp must have 'vndk' tag as well as 'vendor_available: true'. The 'vndk' tag for VNDK module is formated as below: vndk: { enabled: true, }, VNDK modules will be installed both in system/lib(64) as normal and in system/lib(64)/vndk as a vendor variant. Bug: 63866913 Test: build and boot with BOARD_VNDK_VERSION=current Merged-In: Icecb22ed2ed0f58c3168605d4cf64815e2dda750 Change-Id: Icecb22ed2ed0f58c3168605d4cf64815e2dda750 (cherry picked from commit 9b0ed7294273d5f10020388e5a5b7e545a2fd1de)
* Mark libnetutils vendor_available.Jayant Chowdhary2017-05-241-0/+1
| | | | | | | | | | | | | libneutils is a library which belongs to vndk-cap. Mark it vendor_available to enable vndk abi stability checks on it. Details: https://android-review.googlesource.com/368372 Test: mm -j64 Bug: 38244611 Change-Id: I32938e3e0bcc1e771290d87f561cc06b9b019046
* libnetutils: Rename dhcptool to dhcpdbgDmitry Shmidt2017-05-172-2/+2
| | | | | | | | | Also print warning that IP will not allow full connectivity. Test: Manual Change-Id: I264c478f07236108a01e766c5264897c2000f008 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* libnetutils: Restore dhcptoolDmitry Shmidt2017-05-162-0/+61
| | | | | | | | | | Despite it is not used for network management, it is very convenient tool for wifi bringup and debugging. Test: Manual Change-Id: I045301acc2dd15d0e68d6b99c8e214865f19ebad Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Convert libnetutils to Android.bpColin Cross2017-04-202-21/+19
| | | | | | | See build/soong/README.md for more information. Test: m -j checkbuild Change-Id: Ia11dffde6fc4d89be6ee651be06b48131c877dc0
* liblog: use log/log.h when utilizing ALOG macrosMark Salyzyn2017-01-113-3/+3
| | | | | | Test: compile Bug: 30465923 Change-Id: Id6d76510819ebd88c3f5003d00d73a0dbe85e943
* system/core Replace cutils/log.h with android/log.hMark Salyzyn2016-09-303-56/+49
| | | | | | | | | | | Should use android/log.h instead of cutils/log.h as a good example to all others. Adjust header order to comply with Android Coding standards. Test: Compile Bug: 26552300 Bug: 31289077 Change-Id: I2c9cbbbd64d8dccf2d44356361d9742e4a9b9031
* Remove deprecated libnetutils DHCPv4 codeErik Kline2016-09-092-54/+0
| | | | Change-Id: I9777730fee0f5c1877b246aa65b03e82d6f475a5
* resolve merge conflicts of 847d963 to nyc-dev-plus-aospElliott Hughes2016-05-182-45/+2
|\ | | | | | | Change-Id: Ib97f56112bff71e2997116f969fd6d3e30e72f26
| * Remove a dead header (<netutils/dhcp.h>).Elliott Hughes2016-05-181-1/+2
| | | | | | | | | | | | | | | | 9c07eb9dd83a4b62a24836cc82a0ab5e7ae08f7d removed the implementation, but missed the header file. Bug: http://b/27192644 Change-Id: I809a3eb0081b05783b70dbca0274cdde6b1b31a6
| * Set IFA_BROADCAST during IPv4 RTM_NEWADDRsErik Kline2016-03-311-2/+14
| | | | | | | | | | | | | | | | Bug: 27194345 Bug: 27732412 Bug: 27786864 Change-Id: I5a5b41422bbaab4582c268c213b788f61cb0e169 (cherry picked from commit 06cb8e92034274c6f803e97a17cd07fedf99bde5)
* | Merge "Set IFA_BROADCAST during IPv4 RTM_NEWADDRs" am: d709914Erik Kline2016-03-311-2/+14
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | am: 012d35b * commit '012d35b7f046f42d97dadd831c8201ecda2daa55': Set IFA_BROADCAST during IPv4 RTM_NEWADDRs Change-Id: Ib4ac0486a06551dce8d79fb1e738e9c567328610
| * | Set IFA_BROADCAST during IPv4 RTM_NEWADDRsErik Kline2016-03-301-2/+14
| | | | | | | | | | | | | | | | | | | | | Bug: 27194345 Bug: 27732412 Bug: 27786864 Change-Id: I5a5b41422bbaab4582c268c213b788f61cb0e169
* | | Merge "Delete dhcpcd code in system/core, since dhcpcd is no more." into nyc-devLorenzo Colitti2016-02-252-373/+0
|\ \ \ | | |/ | |/| | | | | | | | | | | | | am: b046e74bef * commit 'b046e74beff221d96189c4142f42f18730565921': Delete dhcpcd code in system/core, since dhcpcd is no more.
| * | Delete dhcpcd code in system/core, since dhcpcd is no more.Lorenzo Colitti2016-02-252-373/+0
| | | | | | | | | | | | | | | Bug: 27192644 Change-Id: I44c2ded2da69395f12a8850b2677322b11c2cb91
* | | Merge "Move libnetutils headers into libnetutils."Elliott Hughes2016-02-163-0/+113
|\ \ \ | |/ / |/| / | |/ | | | | | | am: d61ad3c44e * commit 'd61ad3c44eba0d9b9248005a9068e6b477c06c32': Move libnetutils headers into libnetutils.
| * Move libnetutils headers into libnetutils.Elliott Hughes2016-02-123-0/+113
| | | | | | | | Change-Id: I8e51b369b7617e780db78c2f77c8e28d0fb93445
* | Merge "libnetutils: Check socket() return value" am: e4b332c7e4Elliott Hughes2016-01-111-2/+9
|\| | | | | | | | | | | | | am: be6d330c18 * commit 'be6d330c18f861fe10c0b238f74cecb2c9783205': libnetutils: Check socket() return value
| * libnetutils: Check socket() return valueBjorn Andersson2015-12-291-2/+9
| | | | | | | | | | | | | | Add a check for socket() errors and make sure to preserve errno over the subsequent close() calls. Change-Id: If52d76cd3cb45044eaaf7fea9bfd4471dc66a078
| * am fb1ecbc5: am e6e71608: Merge "Use __ANDROID__ instead of HAVE_ANDROID_OS."Elliott Hughes2015-07-301-2/+2
| |\ | | | | | | | | | | | | * commit 'fb1ecbc55e7edeafb138eb2a60ca89ba9a7b1f0f': Use __ANDROID__ instead of HAVE_ANDROID_OS.
* | | libnetutils: Add synchronization per socket full operationDmitry Shmidt2015-10-012-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Take and release mutex between ifc_init() and ifc_close() calls to prevent global ifc_ctl_sock override. Bug: 22307208 Change-Id: Iacffd329ce2a51defa550c7e33277332045a7b9b Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | | am fb1ecbc5: am e6e71608: Merge "Use __ANDROID__ instead of HAVE_ANDROID_OS."Elliott Hughes2015-07-301-2/+2
|\ \ \ | |/ / |/| / | |/ | | * commit 'fb1ecbc55e7edeafb138eb2a60ca89ba9a7b1f0f': Use __ANDROID__ instead of HAVE_ANDROID_OS.
| * Use __ANDROID__ instead of HAVE_ANDROID_OS.Elliott Hughes2015-07-301-2/+2
| | | | | | | | Change-Id: I9967f3fd758c2a5b40be5b60ae72be7e2fb75136
* | am f91c0664: am 421d01c8: am d4196ef8: Merge "Add a command to call ↵Elliott Hughes2015-04-212-0/+50
|\| | | | | | | | | | | | | libnetutils\' do_dhcp." * commit 'f91c06646ed836c25aeacc4332851c53cd1e0861': Add a command to call libnetutils' do_dhcp.
| * Add a command to call libnetutils' do_dhcp.Elliott Hughes2015-04-212-0/+50
| | | | | | | | | | | | Useful for wifi bringup. Change-Id: Ib1d1b1d15cb9ce57119457a780e169b8f98987c2
* | am c92420b2: am d9a65a65: Merge "Improving the time to wait for assigning IP ↵Dmitry Shmidt2015-03-181-2/+4
|\| | | | | | | | | | | | | address" * commit 'c92420b23b3006ed2e1ece6020dc9d6daa7bf336': Improving the time to wait for assigning IP address
| * Merge "Improving the time to wait for assigning IP address"Dmitry Shmidt2015-03-181-2/+4
| |\
| | * Improving the time to wait for assigning IP addressdaisuke niwa2015-02-271-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release'Vinit Deshpande2015-03-161-57/+55
|\ \ \ | |/ / |/| | | | | Change-Id: I4d3d55dac794db8fa81d3048e41ac589920f43b8
| * | Make sure errmsg starts out null-terminated.Erik Kline2015-03-041-10/+10
| | | | | | | | | | | | | | | | | | Also: clean up some stray trailing whitespace. Change-Id: I12471b6059971c9c25d7ff6475bfad43cbee44f6
| * | Refactor dhcp_utils for more flexible uses.Erik Kline2015-03-011-49/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | More SOCK_CLOEXECNick Kralevich2015-02-261-3/+3
| |/ |/| | | | | Change-Id: I3e18f34d08a6443aaf55d7c91c27867840ac1773
* | Move sprintf to snprintf.Yabin Cui2015-02-171-5/+5
| | | | | | | | | | Bug: 19340053 Change-Id: Id0d866e6195ed4752b4be6081eeb2aab8b1dbe9a
* | Remove netcfg's unused options.Elliott Hughes2015-02-031-7/+7
| | | | | | | | | | | | | | Only "netcfg" for a list of interfaces and "netcfg <interface> dhcp" still seem to be used. Change-Id: I9f0b580474258fa648deb5287f98d8ec5533ca6f
* | Revert "Remove netcfg's unused options."Elliott Hughes2015-02-032-7/+27
| | | | | | | | | | | | This reverts commit f8e83054cb8a8b13ee84a4aeeaa0a2fd8debca81. Change-Id: Iede772f96ff9008277df433dcbb5f6603de65283
* | Remove netcfg's unused options.Elliott Hughes2015-02-032-27/+7
| | | | | | | | | | | | | | Only "netcfg" for a list of interfaces and "netcfg <interface> dhcp" still seem to be used. Change-Id: Iaf499c06b09ffe5e0925339b9cd6e502f3234a86
* | Add missing <malloc.h> and <string.h> includes.Elliott Hughes2015-01-281-0/+1
| | | | | | | | Change-Id: Ia41756e607663d056e7d2fdd7ecbec7e5841a913
* | Libnetutils: Remove unused functions & variablesAndreas Gampe2014-11-244-12/+2
|/ | | | | | | For build-system CFLAGS clean-up, remove unused functions and variables. Change-Id: I40a78d5a532dc32b53beb1cfc1b7645bab8add16
* Support resetting connections tied to any nonexistent address.Sreeram Ramachandran2014-09-091-2/+4
| | | | | Bug: 15414453 Change-Id: Ibf1f052e12b88838a328148e25817a96f10d50f5
* Add a comment to not delete seemingly unused code.Sreeram Ramachandran2014-07-231-0/+1
| | | | Change-Id: I5b9d23eea7e850ab5a1f3a4e6c4f8ecdc3844864
* Put back some deleted code.Sreeram Ramachandran2014-07-231-0/+31
| | | | | | | | | 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
* Cleanup: Delete dead code.Sreeram Ramachandran2014-07-221-301/+0
| | | | | Bug: 15413389 Change-Id: I315468832ef18ffc84174e54774ab63b86d284dc
* am 04482eab: am f998116b: am 08c372d1: Merge "libnetutils: Turn on -Werror"Mark Salyzyn2014-05-232-7/+11
|\ | | | | | | | | * commit '04482eaba2584c3a05bff4a6647f0a2e55475a91': libnetutils: Turn on -Werror
| * libnetutils: Turn on -WerrorMark Salyzyn2014-05-232-7/+11
| | | | | | | | | | | | | | - Get rid of a pair of out of range comparison warnings. - Turn on -Werror for compilation Change-Id: Ie6754f41f9348852a02cc0ff35befb5a76ac2883
* | am 2a7ce0bc: am 9a12e952: am 5b7bb03e: Merge "Revert "libnetutils: Turn on ↵Mark Salyzyn2014-05-211-5/+3
|\| | | | | | | | | | | | | -Werror"" * commit '2a7ce0bc7da0201c4b228d04d900ec440bfdcf8b': Revert "libnetutils: Turn on -Werror"
| * Revert "libnetutils: Turn on -Werror"Mark Salyzyn2014-05-211-5/+3
| | | | | | | | | | | | This reverts commit 249c26de823be0f9a84a9f092c776bcd9830fba5. Change-Id: I2a56c574fa8d842d5f3c51fd57ecf078838fcfec
* | am d7465194: am 2c0a7f6f: am d3cd08f8: Merge "libnetutils: Turn on -Werror"Mark Salyzyn2014-05-211-3/+5
|\| | | | | | | | | * commit 'd746519443e37d7dde104779253830e92ae72c8e': libnetutils: Turn on -Werror
| * libnetutils: Turn on -WerrorMark Salyzyn2014-05-211-3/+5
| | | | | | | | Change-Id: Ie6754f41f9348852a02cc0ff35befb5a76ac2882
| * Merge commit '536dea9d61a032e64bbe584a97463c6638ead009' into HEADThe Android Open Source Project2013-11-221-5/+12
| |\ | | | | | | | | | Change-Id: I5c469a4b738629d99d721cad7ded02d6c35f56d5