summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-01-06More SOCK_DESTROY test workLorenzo Colitti
- Test that killing a socket kills established but not accepted children. - Make tests a bit more readable. Change-Id: I1133480233baf09d3f7bf73db612a82917ab0ca9
2016-01-06Add code and tests to close sockets via SOCK_DESTROY.Lorenzo Colitti
Change-Id: I769518d128fcff8035c58fbf3dc868f02fbd6c9d
2016-01-06Make getsockopt(SO_BINDTODEVICE) actually work.Lorenzo Colitti
Also change "16" to "IFNAMSIZ" in various places. Change-Id: Ib22c419e77dabf3bc6b1137b774daf5313b5ffeb
2016-01-06Merge changes I10fbb3bc,Iba2afc09Lorenzo Colitti
* changes: Make GetSockDiag really return an InetDiagMsg, not a tuple. Don't fail if getting SO_BINDTODEVICE is not yet supported.
2016-01-06Make GetSockDiag really return an InetDiagMsg, not a tuple.Lorenzo Colitti
Change-Id: I10fbb3bcecfc61082a5cc67419bf3c6616615398
2016-01-06Don't fail if getting SO_BINDTODEVICE is not yet supported.Lorenzo Colitti
This makes sock_diag_test pass on android-3.4. Change-Id: Iba2afc09b62e59e03c1368e9d1772da685ab0300
2016-01-06Merge changes I62ea60f8,If6613ec1Lorenzo Colitti
* changes: Improvements to sock_diag code. Enable various lock debugging options.
2016-01-06Merge "Add a convenience _GetMsg function and use it."Lorenzo Colitti
2016-01-06Improvements to sock_diag code.Lorenzo Colitti
1. Add a Dump convenience function that takes a request. 2. Add code to zero out uninitialized data in diag_msg. 3. Add more granular functions for constructing requests (e.g., from sockets) without executing dumps. 4. Rename the Get* functions that scan socket dumps (such as GetSockDiagForFd) to Find* to make it clear that they scan dumps instead of asking the kernel for a particular socket. Change-Id: I62ea60f888fe2dd50f5c5cf9dd680608a74097a3
2015-12-29Merge "Use GID "wakelock" to control access to kernel wakelock"Pavlin Radoslavov
2015-12-28Use GID "wakelock" to control access to kernel wakelockPavlin Radoslavov
Bug: 25864142 Change-Id: Ie0cc023ba702689468320dc25304380b3f5eaca3
2015-12-22Merge "libext4_utils: add dependency on libselinux"Colin Cross
2015-12-21libext4_utils: add dependency on libselinuxColin Cross
libext4_utils uses headers from libselinux, add a LOCAL_STATIC_LIBRARIES dependency. Change-Id: Ibce576b48a7f7b9a9d1a043c244d85717ce5f980
2015-12-21Merge "fec: accept multiple input files for encoding"Sami Tolvanen
2015-12-21Enable various lock debugging options.Lorenzo Colitti
Change-Id: If6613ec15ba54388fd87ff9271ba51b554960484
2015-12-19Add a convenience _GetMsg function and use it.Lorenzo Colitti
Change-Id: I2691dfd2cdd7ffcad8c41d74243e41643baf6805
2015-12-18Merge "memory_replay: add .clang-format."Josh Gao
2015-12-18fec: accept multiple input files for encodingSami Tolvanen
Make it possible to encode input files in pieces (not with -m). Bug: 26251929 Change-Id: I09349368925e5e2f2a7961a712a1e933eb0b9ec8
2015-12-18Merge changes Ib0ab1722,Id5b1b351Lorenzo Colitti
* changes: Don't create TIME-WAIT sockets in CreateSocketPair. Add support for the sock_diag netlink interface.
2015-12-17Merge "libfec: handle IO errors"Sami Tolvanen
2015-12-17libfec: handle IO errorsSami Tolvanen
Treat IO errors as corruption and attempt to recover instead of instantly failing. Change-Id: I5abbe9a95d654c636ce013e3c0928e170a0e2c66
2015-12-16memory_replay: add .clang-format.Josh Gao
Change-Id: Iac3924bb7c9602762a3413aa529b9dec981c75e3
2015-12-16Merge "Binder: Fix unused parameter in benchmark"Andreas Gampe
2015-12-16Binder: Fix unused parameter in benchmarkAndreas Gampe
Make build less noisy. Bug: 18632512 Change-Id: I8a7ea6a9b9f7c40862d4ec73d50c966cb9da31e9
2015-12-15Merge "Remove memtest's crash test."Elliott Hughes
2015-12-14Remove memtest's crash test.Elliott Hughes
debuggerd's "crasher" has an extensive range of different crashes, ported to all supported architectures. Change-Id: I881002f5eb20c7bf87f1add2673216439a92d56c
2015-12-15Merge "Remove system/extras/tests/bionic."Elliott Hughes
2015-12-14Remove system/extras/tests/bionic.Elliott Hughes
Everything is now tested better by bionic itself, and as part of CTS. Change-Id: Ie23e50b5ece911b650ad5abda8230bf7a8d3a452
2015-12-15Merge "Remove obsolete system/extras/timeinfo."Elliott Hughes
2015-12-14Remove obsolete system/extras/timeinfo.Elliott Hughes
Not touched since cupcake. Change-Id: I22ad0bfe3897ed590d0d6d17e04dc7dfced7bff2
2015-12-15Don't create TIME-WAIT sockets in CreateSocketPair.Lorenzo Colitti
Some tests create lots of socket pairs, and the resulting TIME-WAIT sockets can cause subsequent tests to fail when binding. Change-Id: Ib0ab1722cfa9891d177a805a84807c6f58550dd4
2015-12-15Add support for the sock_diag netlink interface.Lorenzo Colitti
Change-Id: Id5b1b3516d0a708bcfd69ae0e182dc39fe225934
2015-12-14Merge "Deal with flowlabel randomization."Lorenzo Colitti
2015-12-14Merge changes Ibab1eb74,I08e82f70,I9f8bb375Lorenzo Colitti
* changes: Support properly resetting non-SYN, non-FIN packets. Add a tests that checks NAs with the R flag set to 0. Add utility functions to neighbour_test.
2015-12-14Deal with flowlabel randomization.Lorenzo Colitti
Recent kernels randomize flowlabels by default. This causes our packet comparisons to fail. Fix this by copying over the flowlabel like we do with the IP id and the DF bit. Change-Id: I8cf2685e622d89ca25fab443bab3bb1c3079b076
2015-12-14Support properly resetting non-SYN, non-FIN packets.Lorenzo Colitti
Change-Id: Ibab1eb744a6223007851abdd272b990ad360a9e4
2015-12-14Add a tests that checks NAs with the R flag set to 0.Lorenzo Colitti
NAs with R=0 have been implicated in loss of connectivity. This test checks that they behave as expected. Change-Id: I08e82f704cde4f40b423c8f52a34fef1ebfd74ee
2015-12-14Add utility functions to neighbour_test.Lorenzo Colitti
1. Clear the ND cache entries for the IPv6 routers before each test, so we can add tests and always start from a clean slate. 2. Support expecting multicast NS. 3. Support generating NAs with different source and destination addresses. Change-Id: I9f8bb37540efa2d237eb236059e859f42aacdadc
2015-12-10Merge "Rename libext2 host libraries to standard suffix."brillo-m8-releasebrillo-m8-devAlex Deymo
2015-12-10Merge "bootctl: add is-slot-marked-successful command."David Zeuthen
2015-12-10bootctl: add is-slot-marked-successful command.David Zeuthen
This makes it easy to call the newly added isSlotMarkedSuccessful() boot_control HAL method added in the CL at https://android-review.googlesource.com/#/c/185841/ This is useful for e.g. test suites. Also improve error reporting for is-slot-bootable command. Change-Id: I603e07d8310fc1de88114dadbaa1622a76289afb Test: tested on edison (Brillo).
2015-12-10Merge "Move CreateSocketPair to net_test.py so we can use it elsewhere."Lorenzo Colitti
2015-12-09Rename libext2 host libraries to standard suffix.Alex Deymo
libext2_uuid_host was renamed to libext2_uuid-host to match the "-host" suffix used in most libraries. Bug: 24619596 TEST=m Change-Id: Ia417e1e65fa7ee54baac1007c057fe2571bf8196
2015-12-09Move CreateSocketPair to net_test.py so we can use it elsewhere.Lorenzo Colitti
Change-Id: Ic46e1b9ffb9d1d6082c0453baaad71a3d43b432f
2015-12-09Merge "Minor changes to netlink code."Lorenzo Colitti
2015-12-09Minor changes to netlink code.Lorenzo Colitti
1. Remove IpRoute._Debug, since it's identical to the superclass version. 2. Add some setsockopt constants to netlink.py. 3. Do the right thing if the kernel returns an error in a dump request. Change-Id: I37e49b35f1366760a408c7c4a73f95164d796a2e
2015-12-09Merge "Simpleperf: check value returned by fopen."Yabin Cui
2015-12-08Simpleperf: check value returned by fopen.Yabin Cui
Change-Id: Iecddf0b7805ccc2ad930bab2cdfcefa0702e5661
2015-12-09Merge "Simpleperf: check if elf file paths are valid before reading them."Yabin Cui
2015-12-08Simpleperf: check if elf file paths are valid before reading them.Yabin Cui
Reading invalid file paths can cause troubles. For example, reading /dev/zero can eat all memory. Bug: 25194400 Change-Id: I4de17f4f9200a43b50a4efe4c42a6fd9eaec1ba6