deadbeef c874d1296a Fixing logic for using android_setsocknetwork() with bind().
If android_setsocknetwork() is available, and it fails, then bind()
should *not* be called, and an error should be returned.

If it succeeds, then bind should be called, but with an "any" address.

This is to prevent cases where sockets are sent with a source address
that doesn't match the network interface they're sent on. See bug below.

This CL also changes "NetworkBinderResults" to an enum class, and
renames it to "NetworkBinderResult".

BUG=webrtc:7026

Review-Url: https://codereview.webrtc.org/2646863005
Cr-Commit-Position: refs/heads/master@{#16597}
2017-02-13 23:41:59 +00:00
..
2016-12-14 15:15:19 +00:00
2015-04-02 10:31:00 +00:00
2016-09-29 00:42:08 +00:00
2016-12-09 14:54:08 +00:00
2016-09-29 00:42:08 +00:00
2016-12-09 14:54:08 +00:00
2016-12-14 23:03:11 +00:00
2016-12-14 23:03:11 +00:00
2015-12-28 22:07:05 +00:00
2015-12-28 22:07:05 +00:00
2016-09-29 00:42:08 +00:00
2015-05-21 11:50:41 +00:00
2015-05-21 11:50:41 +00:00
2015-04-01 22:25:29 +00:00
2016-08-16 13:38:23 +00:00
2016-07-01 10:45:29 +00:00
2016-02-02 16:34:16 +00:00
2016-01-04 21:44:16 +00:00
2016-10-03 07:30:08 +00:00
2016-10-03 07:30:08 +00:00