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
1 file changed
tree: c6c04ae2efc36c9b3ca87d40cc59975eb3d9de99
  1. net/
  2. OWNERS