system: netd: prevent infinite loop

There is a corner case where rescan() runs between
allocateServiceRef and startMonitoring.  After
allocateServiceRef is called the node at mHead
has mReady = 0.  Then when rescan runs, it loops forver
waiting for mReady != 0, but startMonitoring can't
run because rescan has the lock.

To prevent this, allow rescan to continue to the
next node if mReady == 0.

Change-Id: I7538e00087c02cd6b5553c992bd3c14e1a867a99
Fix for DNS resolutions when there is no default network set yet.
We need to determine the actual netId to use prior to comparing
it against the default netId.  Also initialize the default network
variable.

bug:13877665
Change-Id: I24c05eb006e2c93d5e0a9b94fee4da408089d2b8
Netd: Drop hard-coded libnetcmdiface path, let the system auto-resolve to a proper lib version.

Change-Id: I3604b0610c6aadeaaac7bd970b3d3d190111f0dd
Signed-off-by: Sasha Levitskiy <sanek@google.com>
Merge "Fix for DNS resolutions when there is no default network set yet. We need to determine the actual netId to use prior to comparing it against the default netId.  Also initialize the default network variable."
Merge "Netd: Drop hard-coded libnetcmdiface path, let the system auto-resolve to a proper lib version."
Merge "system: netd: prevent infinite loop"
auto-merger: merge in from aosp/master