summaryrefslogtreecommitdiffstats
path: root/libnetutils
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Add OWNERS." am: 3289b9c928Elliott Hughes2017-12-071-0/+3
|\ | | | | | | | | | | am: 515c8fe572 Change-Id: I378e0205c21a4df5baacde3432b618443f7ef567
| * 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)
* | libnetutil: Check dhcp respose packet length am: 61f25d4a36 am: cee6d38c55 ↵tintin2017-11-021-0/+14
|\ \ | | | | | | | | | | | | | | | | | | | | | am: 29d054046f am: c29049f4f8 am: 3de04e9840 am: 19702dc499 am: 8191e9ba87 am: 804323c195 am: 4f5f00d879 am: 3a1ff1ad71 am: bab7b1ecd9 am: cdf0fc6018 am: 9f1398c6e3 Change-Id: I4c46a36846dd8f6588f29bc84de9bc3f1d7c088a
| * \ libnetutil: Check dhcp respose packet length am: 61f25d4a36 am: cee6d38c55 ↵tintin2017-11-021-0/+14
| |\ \ | | |/ | |/| | | | | | | | | | | | | | | | am: 29d054046f am: c29049f4f8 am: 3de04e9840 am: 19702dc499 am: 8191e9ba87 am: 804323c195 am: 4f5f00d879 am: 3a1ff1ad71 am: bab7b1ecd9 am: cdf0fc6018 Change-Id: If9bc99849e62fe38cdf52180ff76390c452e0784
| | * libnetutil: Check dhcp respose packet length am: 61f25d4a36 am: cee6d38c55 ↵tintin2017-11-021-0/+14
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 29d054046f am: c29049f4f8 am: 3de04e9840 am: 19702dc499 am: 8191e9ba87 am: 804323c195 am: 4f5f00d879 am: 3a1ff1ad71 am: bab7b1ecd9 Change-Id: Id56f81b841d83b4b6fc75517fa165c0000dac663
| | | * libnetutil: Check dhcp respose packet length am: 61f25d4a36 am: cee6d38c55 ↵tintin2017-11-021-0/+14
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 29d054046f am: c29049f4f8 am: 3de04e9840 am: 19702dc499 Change-Id: I5056e93b303683a70c38251f282c80e810fb317b
| | | | * libnetutil: Check dhcp respose packet length am: 61f25d4a36tintin2017-11-021-0/+14
| | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cee6d38c55 Change-Id: Ieac19dd67cee1f22e019ac87b33b8afcd1200dcb
| | | | | * libnetutil: Check dhcp respose packet lengthtintin2017-11-021-0/+14
| | | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 61f25d4a36 Change-Id: Id5158c66d2ade871c90a2337fe867f977cefdca3
| | | | | | * libnetutil: Check dhcp respose packet lengthtintin2017-10-171-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 67474440 Test: Manual Change-Id: I84b533f0101a56ec01e64c7591f3c7e82f513b2e Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
| | | | | | * DO NOT MERGE:Add missing SOCK_CLOEXEC flag when opening socketTianjie Xu2016-11-031-1/+1
| | | | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Go through the code that opens socket in marshmallow, and backport the SOCK_CLOEXEC usage when opening sockets with AF_NETLINK. Bug: 31242981 Test: mma Change-Id: I709fc1dd43a883f95bb99021e1350c062ca35203
| | * | | | Mark libnetutils vendor_available.Jayant Chowdhary2017-05-311-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 Merged-In: Ief58111dea549224b3bce5cb52fd691d4381fb88 Change-Id: I32938e3e0bcc1e771290d87f561cc06b9b019046 (cherry picked from commit 409731efc1fb2e0d1d339b20ca12c5790386801e)
| | * | | | Convert libnetutils to Android.bpColin Cross2017-04-282-21/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See build/soong/README.md for more information. Test: m -j checkbuild Bug: 37567578 cherry picked from cafe889aa8ba4d77caec15620e9fbc1dbc995e58 Merged-In: Ia11dffde6fc4d89be6ee651be06b48131c877dc0 Change-Id: Ia11dffde6fc4d89be6ee651be06b48131c877dc0
* | | | | | Mark the modules as VNDK in Android.bpJustin Yun2017-08-031-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 Change-Id: Icecb22ed2ed0f58c3168605d4cf64815e2dda750
* | | | | 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-102-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-121-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-222-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-191-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-191-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-021-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