commit | ee7c0f16f136d328eef686bdb11a26b16c94cdcf | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Mon Nov 20 17:52:35 2017 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Mon Nov 20 17:59:32 2017 +0900 |
tree | c6c04ae2efc36c9b3ca87d40cc59975eb3d9de99 | |
parent | 2f5df35a91a09fb0fbe80f2bce913316bd269e3a [diff] |
Use a UDP socket instead of a ping socket for ioctls. The type of socket used for ioctls does not affect the success of the calls themselves, so UDP is just as good as ping. However, UDP makes this code more reusable, because on many systems, ping sockets are restricted by default. Test: all_tests.sh passes on android-4.9 Change-Id: I44a25af880659b364edbec72850d968b2ef17f11