• Home
  • History
  • Annotate
  • only in /system/core/libsysutils/src/
History log of /system/core/libsysutils/src/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f34861346d5c207912075fba9874090e4c947869 02-Sep-2013 Lorenzo Colitti <lorenzo@google.com> Switch back to subsystem "net" for netlink events.

The change to enable address tracking via netlink incorrectly
changed the subsystem of rtnetlink events from "net" to
"interface". This broke interface add/delete notifications,
which come from the kernel with subsystem "net".

Switch back to "net" and deal with address tracking via new
action codes instead of a new subsystem.

Bug: 10433320
Change-Id: Ibf30efb426949dfd02304cc1d9adb1c005a539a6
etlinkEvent.cpp
3984276ce47c965ad02a522280a139e0a0c7e5cf 16-Aug-2013 Lorenzo Colitti <lorenzo@google.com> Get rid of an infinite loop in NetlinkEvent.cpp.

Bug: 10358527
Bug: 10263310
Bug: 10232006
Change-Id: I750e4bdf2000040adf214d6a772591d7bd25b350
etlinkEvent.cpp
a4b4e9ad8e35ab424e61d76ebe6654445fc61e63 01-Aug-2013 Lorenzo Colitti <lorenzo@google.com> Parse IP address changes in NetlinkEvent.

This adds support for parsing RTM_NEWADDR and RTM_DELADDR
netlink messages received on netd's netlink socket and
formatting them them so NetlinkHandler can process them.

Address changes are notified in subsystem "address". Interface
changes, which used to be notified in subsystem "net", are now
notified in subsystem "interface" to avoid confusion.

Bug: 10232006
Change-Id: I93a50e8de17014e118a42f5cc0eb90a0cbfa73cc
etlinkEvent.cpp
544a7f7a36cb9434505fe5cdc9e79d16937ac23f 01-Apr-2013 Hong-Mei Li <a21834@motorola.com> libsysutils: fix null pointer and memory leak issue

In SocketClient::quoteArg function
1. Fix potential null pointer accessing issue
2. Fix potential memory leak introduced by realloc fail

Change-Id: I1ca0f9089290d43452e9a71428244545f4ed866b
Signed-off-by: Hong-Mei Li <a21834@motorola.com>
ocketClient.cpp
6d358ae44ccfbcd5b89511d142f334b2cc1b67b1 23-Feb-2011 Josef Kindberg <josef.kindberg@stericsson.com> libsysutils: Increase command buffersize and command args

Needed to support tethering of multiple remote Bluetooth devices.

Change-Id: I9f736affd83226e8b2fa4f0faacd3654175dd8c9
Signed-off-by: Patrik Ryd <patrik.ryd@stericsson.com>
rameworkListener.cpp
6f523cda13094bf493cdf37e7ecc480bb5a37a2b 31-May-2012 Robert Greenwalt <rgreenwalt@google.com> am 7bb1b958: am ff856a2b: Merge "Add error handling to SocketClient::sendData"

* commit '7bb1b9585d2d61beaf05c997971aee27f87ad3f7':
Add error handling to SocketClient::sendData
2e5fcd08ac177e984ebf1fb05bab5dfcf296c5a4 13-May-2011 Mattias Falk <mattias.falk@sonyericsson.com> Add error handling to SocketClient::sendData

Return failure and set errno if mSocket isn't valid.

Change-Id: I579114d435db46d0bb5682167ef34bebe061a8f8
ocketClient.cpp
b982bce73b7e2c824ffb50115ea382fe45c751a4 27-Apr-2012 JP Abgrall <jpa@google.com> Revert "libsysutils: NetlinkEvent: add support for interface xt_IDLETIMER events."

This reverts commit 731d831e91d5d9f8b15ca95367977abe35967166.

Now that the xt_IDLETIMER uses the KOBJECT_UEVENT netlink, this
change is not needed anymore.
etlinkEvent.cpp
594947793c98e8e7f58f0e9b2cb962c9ef23adeb 21-Apr-2012 Robert Greenwalt <rgreenwalt@google.com> Add ability to quote responses as needed.

It's up to the protocol to know when quotes are required. In the future
the response should probably all be binary blobs with lengths.

bug:6353048
Change-Id: I3f9b48ab0f4e6746d75cdc9c0c84d33f38f63661
ocketClient.cpp
731d831e91d5d9f8b15ca95367977abe35967166 11-Apr-2012 Ashish Sharma <ashishsharma@google.com> libsysutils: NetlinkEvent: add support for interface xt_IDLETIMER events.

xt_IDLETIMER events are used to infer the interface (radio) state
based on a inactivity timeout value.

Change-Id: I755eb54a048ca1c6ce0c646564d61188d8241851
etlinkEvent.cpp
d98533a01213ef8d4ef9a644074ada200cdfc926 30-Mar-2012 Geremy Condra <gcondra@google.com> Added netlink failure logging to NetlinkListener.cpp

This depends on If2f00708a1dd6196c415b1ebc2a7eeb72399a90e

Change-Id: If6c63e46f906b94f4778eb5e78123d8efe1710d4
etlinkListener.cpp
6ac770fc52595b8230c3286d7707c85b003aeac1 12-Mar-2012 Selim Gurun <sgurun@google.com> Do not generate SIGPIPE errors in SocketCLient.

This change is to make sure the users of library does not crash
if they are not handling SIGPIPE properly.

Change-Id: I4ea80d6bfc26a4bca6b901959ae3060b059d46d3
ocketClient.cpp
7599bfcf13cf022333338b7a87aaddae69c48d73 09-Mar-2012 Robert Greenwalt <rgreenwalt@google.com> Fix pointer arith.

Sending 3digit code, null, binary-length and data. Current code sends
3digit code, space, null, binary-length, binary-data.

The space should not be sent.

Change-Id: I1df00a3e70805b39b6105966c7f3c613461a6858
ocketClient.cpp
7bf4c45f842ded6d6ad6b2d80e052ddf56969723 28-Feb-2012 Selim Gurun <sgurun@google.com> Add a utility function to send a code + binary msg

Add a utility function to SocketClient to send a c-string code
prepended to a binary message. This is necessary to be able to
send a binary message while keeping compatible with underlying
text-based protocol.

Change-Id: Ifc6562003a687577d7deb50260533a5147ae4f97
ocketClient.cpp
8702bb17f40022e970e8acd40b348d074e39afc7 07-Feb-2012 Robert Greenwalt <rgreenwalt@google.com> New NativeDaemonConnector protocol adds a seqnum.

Allows for one socket to be multiplexed for multiple requests.
Doesn't use command sequence numbers for broadcasts - would make no sense.
Doesn't alter current default behavior so OEM's using these classes
won't notice a difference.
bug:5864209

Change-Id: Ie3b19c4f81eea868569229a365c8cb7de249c2dd
rameworkListener.cpp
ocketClient.cpp
ocketListener.cpp
a8185a622e368d1957e18a3ee9d29d45eda12cfc 08-Feb-2012 Guang Zhu <guangzhu@google.com> Revert "New NativeDaemonConnector protocol adds a seqnum."

Reverting because it seems to break `adb reboot`

This reverts commit dc58e73071aa829a5038caf37211f6b3e2d7b275.

Change-Id: Ib8cc4379254694398cbb7f3e7a64c20e1ed8c1ba
rameworkListener.cpp
ocketClient.cpp
ocketListener.cpp
dc58e73071aa829a5038caf37211f6b3e2d7b275 07-Feb-2012 Robert Greenwalt <rgreenwalt@google.com> New NativeDaemonConnector protocol adds a seqnum.

Allows for one socket to be multiplexed for multiple requests.
bug:5864209

Change-Id: I934c88da25d95e093371f455442bdf2f0ed7a4f4
rameworkListener.cpp
ocketClient.cpp
ocketListener.cpp
6bbaaa630195a1bcfa90c168a354f76b90125ed6 18-Nov-2011 Nick Kralevich <nnk@google.com> libsysutils: log dispatchCommand overflow.

Change-Id: Iefd3f7cc170c1fe65209c6ffe10debc21aed0c7f
rameworkListener.cpp
477df68854ff0b92f1ca8f7f18d53b6a0c30102a 29-Oct-2011 Irfan Sheriff <isheriff@google.com> Remove log spam

Bug: 5533986
Change-Id: I3d8108e2f65ce6513ac8b2d14541eaa5e4fc5da1
etlinkEvent.cpp
4520246d3534c087f3e9253c34f99dd1e45b7bd7 28-Sep-2011 Xianzhu Wang <wangxianzhu@google.com> Fix SocketListener socket leak issue.

The problem was: if a socket is shared between SocketListener and another
thread, only if the last reference is removed by SocketListener can the socket
be closed, otherwise the socket will leak. This sometimes happens in netd's
dnsproxyd.

This change let the SocketClient own the socket and close the socket when
the SocketClient is destructed.

Change-Id: I2865fbfe9ee4d8b3e43d7e02919dbb2d261f70de
ocketClient.cpp
ocketListener.cpp
e6f80149a201e02ddd1e251e0690ad100b688cd6 15-Jul-2011 JP Abgrall <jpa@google.com> NetlinkEvents: adding support for iptables' quota2 NFLOG messages.

It passes the quota2 name and the device at the time the quota was
reached.
ALERT_NAME=...
INTERFACE=...

This needs the new kernel in which xt_quota2 can log.

Change-Id: Icf5045374e1e33bdd1da0d2a2c183e70903a1fea
etlinkEvent.cpp
2a56688da92fcf22ea8ce996e2a0e7b453d1543b 24-Jun-2011 Mike J. Chen <mjchen@google.com> Workaround Motorola ril.so incompatiblity with Netlink changes

To workaround a binary incompatiblity with Motorola's ril.so, I had to
temporarily provide the old constructor for NetlinkListener as well as
a new contructor that takes an additional format argument.
There's still a slight chance of a problem because the size of the
NetlinkListener has changed with the addition of the
mFormat member, but so far I've not seen any obvious problem with that
incompatiblity.

Another way we could have worked around the incompatiblity is to have
netd (the main user of the new format argument to NetlinkListener) keep
track of the format itself in it's NetlinkHandler (derived from NetlinkListener)
and supply it's own version of onDataAvailable() that's almost 100% identical
to NetlinkListener's except for the decode() call. That would allow us
not to modify NetlinkListener at all. Worth considering but I think it's
more properly divided right now and we just have to make Motorola fix their
code (and ideally not use our private APIs).

This change should be reverted when Motorola's has fixed their ril to
either not use our private APIs or to use our updated ones.

Change-Id: I255cca6908444e56cbbbed7eef1fa0cf1d8f0918
Signed-off-by: Mike J. Chen <mjchen@google.com>
etlinkListener.cpp
17260b14682d4fe59dad3de2de8c9370e6ba9a71 24-Jun-2011 Mike J. Chen <mjchen@google.com> Cleanup NetlinkListener and NetlinkEvent

To make it easier to be compatible with older existing code, use
default parameters instead of separate functions for setting.

Also, reintroduce the const usage that was not in the original
changes by Stan.

Also fix some indent spacing.

Change-Id: Ice9ec7f0d5c4a0673037e2e04a764d88a98f68eb
Signed-off-by: Mike J. Chen <mjchen@google.com>
etlinkEvent.cpp
etlinkListener.cpp
ec16b9d47cacb0d873ee0ff80c919f49215c0005 23-Jun-2011 Mike J. Chen <mjchen@google.com> Revert "Revert "Add NETLINK_ROUTE processing to the netlink client code, so that Ethernet""

This reverts commit 1d504eeb50d980c222572629383bb76315f32ca0.

Conflicts:

libsysutils/src/NetlinkEvent.cpp

Bring back the changes from Stan Chesnutt regarding adding NETLINK_ROUTE
processing. The original commit message description was:

Add NETLINK_ROUTE processing to the netlink client code, so that Ethernet
physical-layer up/down events can be tracked. Upper layers will use these
events to enable/disable Ethernet connectivity.

The original change was reverted due to an incompatiblity with Motorola's
ril.so binary. I'll submit a patch to workaround that incompatiblity
separately.

Change-Id: I4e97ac98833b10543e654c63ecae3b9b8c7db44f
Signed-off-by: Mike J. Chen <mjchen@google.com>
etlinkEvent.cpp
etlinkListener.cpp
57de8b8f27f887ca8084671df777a4ac199ba647 11-May-2011 Nick Kralevich <nnk@google.com> rename uevent_checked_recv to uevent_kernel_multicast_recv

Change-Id: I1839627490080efcbb7269699709064856312f8b
etlinkListener.cpp
531312e491079b7d62612fa35b64e8398f1b3283 30-Apr-2011 Nick Kralevich <nnk@google.com> NetlinkListener: eliminate duplicate code

The checks in this code duplicate uevent_checked_recv().
Use that instead.

Change-Id: I2c48bcf4372f0975c27a63d929cae73e16422faf
etlinkListener.cpp
02c8a9cf594d8a074a707e06553a230a690124c4 27-Apr-2011 Nick Kralevich <nnk@google.com> am 18f6d964: am f819d023: Merge "libsysutils: SocketListener: handle recv errors more gracefully."

* commit '18f6d964cbee483106da5c96a8c067a948324da7':
libsysutils: SocketListener: handle recv errors more gracefully.
18f6d964cbee483106da5c96a8c067a948324da7 27-Apr-2011 Nick Kralevich <nnk@google.com> am f819d023: Merge "libsysutils: SocketListener: handle recv errors more gracefully."

* commit 'f819d0233646668b06de36a787979e3b180d6c48':
libsysutils: SocketListener: handle recv errors more gracefully.
8795007a4aedb0860f6e7b838984ba8104f2febc 27-Apr-2011 Vernon Tang <vt@foilhead.net> libsysutils: SocketListener: handle recv errors more gracefully.

Don't close the socket when onDataAvailable returns false if the socket
is connectionless.

Change-Id: Ie19497f5928144c463d92aa72ba517e675549ea6
ocketListener.cpp
a265e5a352c2f43d3229702eb215347b3f7e2047 20-Apr-2011 Nick Kralevich <nnk@google.com> am d94bbc32: am 6bc08280: Validate sender credentials on netlink msg receive

* commit 'd94bbc326ab0e9ceca6f3f90a2864e40bb584c07':
Validate sender credentials on netlink msg receive
6bc08280108d020edfceff039f3955eebdc1e45c 19-Apr-2011 Nick Kralevich <nnk@google.com> Validate sender credentials on netlink msg receive

Verify that netlink messages are actually from the kernel,
and not from a userspace program.

This is a manual cherry-pick from b620a0b1c7ae486e979826200e8e441605b0a5d6

Change-Id: I237f0a5cb56393bb3aab64a7ae5898f2bdc95cef
etlinkListener.cpp
4aadb7f6df4fd21f66c37b8ac0ea8ebf939b41bf 19-Apr-2011 Nick Kralevich <nnk@google.com> am b620a0b1: Validate sender credentials on netlink msg receive

* commit 'b620a0b1c7ae486e979826200e8e441605b0a5d6':
Validate sender credentials on netlink msg receive
b620a0b1c7ae486e979826200e8e441605b0a5d6 19-Apr-2011 Nick Kralevich <nnk@google.com> Validate sender credentials on netlink msg receive

Verify that netlink messages are actually from the kernel,
and not from a userspace program.

Change-Id: I709c0efe9ba0258f6d79ebcde531d7f7bbe780b2
etlinkListener.cpp
4fecade5f21d5d062ebe1c70535367d3407bb68f 29-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> am cb1e616e: am 7c556549: Merge changes Icdefb5ff,Icd7f5f03

* commit 'cb1e616e3c108a9c8b159bb95c3356acf5797ba2':
Fix potential race introduced in Icd7f5f03
SocketClient: add optional reference counting
3549b0dc2829184f9911d27a6ab0cf39b19764f1 18-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> Fix potential race introduced in Icd7f5f03

Digit wrote:

"You probably don't want to close the socket here without updating
c->socket as well. Otherwise, another thread holding a handle to the
client after the c->decRef() could end up sending a message to a
different socket, if the file descriptor index is reused by another
client in the meantime."

Change-Id: Icdefb5ffc0c7607325d7db761e1f04e5d868bfb7
ocketClient.cpp
ocketListener.cpp
13aa8ad44570bceef73115cea749b11f30888530 17-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> SocketClient: add optional reference counting

Needed to fix a race in netd.

Bug: 3438459
Change-Id: Icd7f5f035510235f733a25c0621479d3e644b152
ocketClient.cpp
ocketListener.cpp
15d09854a8b2a1adf2fa5123ff77b9882afd6c22 21-Jan-2011 David 'Digit' Turner <digit@google.com> libsysutils: Fix a file descriptor leak.

The recent refactoring of the select() loop in SocketListener
missed a close() of the file descriptor when the onDataAvailable()
callback returns false.

Change-Id: I767caefab4b98ab350f2db2497ee2bd630f20850
ocketListener.cpp
100c0e2dab243da3a5351f1acbcdc560af10a405 17-Jan-2011 David 'Digit' Turner <digit@google.com> libsysutils: Fix race condition in SocketListener thread.

+ Handle EINTR in accept(), write() and select()
+ Fix a memory leak when deleting the mClients list
+ Fix typo in SocketListener.h

Change-Id: Ie68bb3e2dbefe0dfdaa22a5cd06a42dbc4c0f8aa
ocketListener.cpp
01feae2d7cbd607970c8008055094a6259658939 17-Jan-2011 David 'Digit' Turner <digit@google.com> libsysutils: Handle EINTR in SocketClient::sendData()

+ Improve allocation code in sendMsg(code,msg,addErrno)

Change-Id: Ib5fe84bec1a167c369e7ba759acea395e832f6b5
ocketClient.cpp
b913b5170f3b957d7d1ced425e891a4208ce88bc 21-Jan-2011 David 'Digit' Turner <digit@google.com> libsysutils: Fix a file descriptor leak.

The recent refactoring of the select() loop in SocketListener
missed a close() of the file descriptor when the onDataAvailable()
callback returns false.

Change-Id: I767caefab4b98ab350f2db2497ee2bd630f20850
ocketListener.cpp
af91e4ef095d2c770f1aeceafc1c2e66b645a3c4 17-Jan-2011 David 'Digit' Turner <digit@google.com> libsysutils: Handle EINTR in FrameworkClient.cpp

+ get rid of strcpy + strcat calls.

Change-Id: I47778f3d14aa961474648cddf6510b761f124e74
rameworkClient.cpp
c6b0def5f039dc3bbe1d4b7dc1666c24316eb020 17-Jan-2011 David 'Digit' Turner <digit@google.com> libsysutils: Fix potential overwrites in FrameworkListener

+ Handle EINTR in read()

Change-Id: If7d486dd4fb5666ce16ef36dca5f417da23e0b73
rameworkListener.cpp
cf9e1003ce69a2aea2c64cd82d54a0d3e8917dbb 17-Jan-2011 David 'Digit' Turner <digit@google.com> libsysutils: Fix race condition in SocketListener thread.

+ Handle EINTR in accept(), write() and select()
+ Fix a memory leak when deleting the mClients list
+ Fix typo in SocketListener.h

Change-Id: Ie68bb3e2dbefe0dfdaa22a5cd06a42dbc4c0f8aa
ocketListener.cpp
af61509b50bc110b0c7c4691e37873cc0987ab5c 17-Jan-2011 David 'Digit' Turner <digit@google.com> libsysutils: Handle EINTR in SocketClient::sendData()

+ Improve allocation code in sendMsg(code,msg,addErrno)

Change-Id: Ib5fe84bec1a167c369e7ba759acea395e832f6b5
ocketClient.cpp
af174f0039bf462c36b89fd1439a44c60c4b89c9 17-Jan-2011 David 'Digit' Turner <digit@google.com> libsysutils: Fix wait loop in ServiceManager::start and ::stop

Also check the service name length.

Change-Id: Iffb82aa9e71dd96c85c05c4e2016930f4847c1e8
erviceManager.cpp
b59539d395218299f4b4288a26403fedb3d8124c 17-Jan-2011 David 'Digit' Turner <digit@google.com> libsysutils: Handle EINTR in NetlinkListener

Change-Id: Id881a9ca0f0e54f7c78b3609120bedec00d6671c
etlinkListener.cpp
3311eea1d3881e6f3d6806988b7db3de0a5f68d5 17-Jan-2011 David 'Digit' Turner <digit@google.com> libsysutils: Fix NetLinkEvent security issues.

The issues were the following:
- The code in decode() didn't handle the degenerate case where the input buffer is full of '@'
- The code in decode() assumed the input buffer is properly zero-terminated.
- The code in decode() would not check that it doesn't overwrite the mParams[] array.
- The code in findParam() would check mParams[i] before checking the value of 'i'

Also remove un-necessary calls to strlen() at runtime.

Change-Id: I8acead959bd10d97c5380b08958fcb796248a010
etlinkEvent.cpp
b9634d05cf4fedb2ee49b0a41aeb129d35337ce9 02-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Permit 0 length writes.

Change-Id: I087d0074c8d9e13ce814187475966da94f693fc0
ocketClient.cpp
a2a1f3149fb32d95bc81ddfd713d5bba9d6cbc61 27-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Let SocketClient users write binary data to clients.

This is a dependency for the DNS proxy CLs.

This CL also adds a new socket for the netd process to inherit which
is owned by the inet group. (so only apps with the INTERNET
permission can use the DNS proxy...)

Change-Id: I8a51924e0ed56c6066f77e6f1b02d39bdadac51e
ocketClient.cpp
b93e5812faffd3b6c5fb349072413aace31918d8 17-Nov-2010 Olivier Bailly <olivier@google.com> Add missing headers for compilation on x86 targets

Change-Id: I5f4dc797b353a0f01fa00d38375ec303bf863254
rameworkListener.cpp
erviceManager.cpp
16ae478af46100a435c2875afa020721a59a411a 02-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Permit 0 length writes.

Change-Id: I087d0074c8d9e13ce814187475966da94f693fc0
ocketClient.cpp
8c5669f9f9a228efebf4059fd4ceace5cece578b 27-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Let SocketClient users write binary data to clients.

This is a dependency for the DNS proxy CLs.

This CL also adds a new socket for the netd process to inherit which
is owned by the inet group. (so only apps with the INTERNET
permission can use the DNS proxy...)

Change-Id: Ic3475c697913ba85805b4e49801b65e7a1d59289
ocketClient.cpp
1db75e7b9b5159fa3bcf1cfdc4efba62c570d860 14-Sep-2010 Kenny Root <kroot@google.com> am 6fd75635: Merge "Fetch peer credentials for local sockets" into gingerbread

Merge commit '6fd75635d820754295557c300ccee89c643864cc' into gingerbread-plus-aosp

* commit '6fd75635d820754295557c300ccee89c643864cc':
Fetch peer credentials for local sockets
30abb7234de2a9caa1add4b00a189436f0b24560 14-Sep-2010 Kenny Root <kroot@google.com> Fetch peer credentials for local sockets

Fetch the PID, UID, and GID of the remote side of a local socket
connection in case any users of this library class want to check it.

Change-Id: Ia3230e6bc68ab6f93160df9f5996d2bf744b872c
ocketClient.cpp
0e6242f7e2c1181d486ae8f86592619738574dd3 14-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am 40c2b7cb: Merge "Add missing lock in SocketListener." into gingerbread

Merge commit '40c2b7cbedff612ce8bc7a51589a952cc1d047b6' into gingerbread-plus-aosp

* commit '40c2b7cbedff612ce8bc7a51589a952cc1d047b6':
Add missing lock in SocketListener.
40c2b7cbedff612ce8bc7a51589a952cc1d047b6 14-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "Add missing lock in SocketListener." into gingerbread
c3fa6149284058b30e3eea5010c16d3133711afb 14-Sep-2010 Kenny Root <kroot@google.com> am f31d2ed1: Return false on socket read error

Merge commit 'f31d2ed1fd3a39a92bccc12eb66728594290ef3b' into gingerbread-plus-aosp

* commit 'f31d2ed1fd3a39a92bccc12eb66728594290ef3b':
Return false on socket read error
86d01dec4b8690d94053fbe86d46c9ae26de9ae6 14-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Add missing lock in SocketListener.

Change-Id: I3d97a06381fce67ef13b1ccdeaa4e8e2830ab2aa
ocketListener.cpp
f31d2ed1fd3a39a92bccc12eb66728594290ef3b 14-Sep-2010 Kenny Root <kroot@google.com> Return false on socket read error

FrameworkListener was returning the errno from a function marked as
returning bool which caused an implicit conversion to true since we were
in an error block where errno was set to something non-zero.

This caused the clients that had errors to stick around forever and not
get removed from the set of file descriptors that SocketListener was
listening to.

Change-Id: Ia27a4cac47459f3a3c2bb6a7f66803a3165c894a
rameworkListener.cpp
80ec37aa15c138beee5889a257d1241c30a1e8d7 14-Jul-2010 Chih-Wei Huang <cwhuang@linux.org.tw> libsysutils: reimplement NetlinkEvent::findParam in the proper way

The original implementation can not find correct parameters for certain
cases. For example, if you have both foo_bar and foo, try to find foo
may be mismatched. The correct way is to match with "=".

Change-Id: I403b1a7b889583a57a4f3a14e575181ce93b10ff
etlinkEvent.cpp
7e8529a8b528fd30586aa037f15a31b29582c537 25-Mar-2010 San Mehat <san@google.com> system/core: Switch libsysutils & sched_policy LOG -> SLOG

Change-Id: Id74c6895a8012c5915f2e259339101844de7c085
Signed-off-by: San Mehat <san@google.com>
rameworkClient.cpp
rameworkCommand.cpp
rameworkListener.cpp
etlinkEvent.cpp
etlinkListener.cpp
erviceManager.cpp
ocketClient.cpp
ocketListener.cpp
d674413ff460afe1da049e54bb7a489132799749 24-Dec-2009 San Mehat <san@google.com> sysutils: Add dump() to NetlinkEvent

Signed-off-by: San Mehat <san@google.com>
etlinkEvent.cpp
b029e924285dfe5bd36d93d837eb00db1c7661fc 14-Oct-2009 Jean-Baptiste Queru <jbq@google.com> merge from open-source master
ebfe3db361c51d9d99bf6cfd495bd16bdf815e1f 11-Oct-2009 San Mehat <san@android.com> libsysutils: Fix some bugs in NetlinkListener and NetlinkEvent

Signed-off-by: San Mehat <san@android.com>
etlinkEvent.cpp
etlinkListener.cpp
c4a895b7094461c98101924cf096680bfb7856f1 24-Jun-2009 San Mehat <san@google.com> nexus: Rollup update for nexus

nexus: Change field separator from : to ' '

Signed-off-by: San Mehat <san@google.com>

nexus: Add some prototypes for stuff to come

Signed-off-by: San Mehat <san@google.com>

nexus: Add some TODOs

Signed-off-by: San Mehat <san@google.com>

libsysutils: Put a proper token parser into the FrameworkListener which
supports minimal \ escapes and quotes

Signed-off-by: San Mehat <san@google.com>

nexus: Fix a lot of bugs

Signed-off-by: San Mehat <san@google.com>

libsysutils: Remove some debugging
Signed-off-by: San Mehat <san@google.com>

nexus: Send broadcasts for supplicant state changes

Signed-off-by: San Mehat <san@google.com>

nexus: Plumb DHCP listener state changes to NetworkManager

Signed-off-by: San Mehat <san@google.com>

nexus: Make the SupplicantState strings more parsable

Signed-off-by: San Mehat <san@google.com>

nexus: Broadcast a message when dhcp state changes.

Signed-off-by: San Mehat <san@google.com>

nexus: Add a few new response codes

Signed-off-by: San Mehat <san@google.com>

nexus: Rename ErrorCode -> ResponseCode

Signed-off-by: San Mehat <san@google.com>

nexus: Add DHCP event broadcasting. Also adds the framework for
tracking supplicant 'searching-for-AP' state

Signed-off-by: San Mehat <san@google.com>

nexus: REmove WifiScanner

Signed-off-by: San Mehat <san@google.com>

nexus: Change the way scanning works. scanmode can now be selected
independantly of triggering a scan. Also adds rxfilter support

Signed-off-by: San Mehat <san@google.com>

nexus: Add support for configuring bluetooth coexistence scanning and modes

Signed-off-by: San Mehat <san@google.com>

nexus: use case insensitive match for property names

Signed-off-by: San Mehat <san@google.com>

nexus: Rollup of a bunch of stuff:
- 'list' command now takes an argument to match against
- InterfaceConfig has been moved into the Controller base (for now)
- DhcpClient now has some rudimentry locking
- process 'ADDRINFO' messages from dhcpcd
- Drop tertiary dns

Signed-off-by: San Mehat <san@google.com>

nexus: Clean up some of the supplicant variable parsing and add 'wifi.current'

Signed-off-by: San Mehat <san@google.com>

nexus: Add driver-stop/start, initial suspend support

Signed-off-by: San Mehat <san@google.com>

nexus: Add Controller suspend/resume callbacks, as well as locking

Signed-off-by: San Mehat <san@google.com>

nexus: Make ARP probing configurable for DhcpClient

Signed-off-by: San Mehat <san@google.com>

nexus: Add linkspeed / rssi retrieval

Signed-off-by: San Mehat <san@google.com>

nexus: Add WifiStatusPoller to track RSSI/linkspeed when associated

Signed-off-by: San Mehat <san@google.com>

nexus: Disable some debugging and add 'wifi.netcount' property

Signed-off-by: San Mehat <san@google.com>

nexus: Replace the hackish property system with something more flexible with namespaces

Signed-off-by: San Mehat <san@google.com>

libsysutils: Fix a few bugs in SocketListener

Signed-off-by: San Mehat <san@google.com>

nexus: PropertyManager: Add array support

Signed-off-by: San Mehat <san@google.com>

nexus: Clean up properties
Signed-off-by: San Mehat <san@google.com>

nexus: WifiController: Change name of 'CurrentNetwork' property

Signed-off-by: San Mehat <san@google.com>
rameworkListener.cpp
ocketListener.cpp
c73a3a5771a2d29d1bae666bfde12f751d66fc96 15-Jun-2009 San Mehat <san@google.com> libsysutils: Move to a null terminated string protocol using space as a field separator.

Also removes some debugging

Signed-off-by: San Mehat <san@google.com>
rameworkCommand.cpp
rameworkListener.cpp
ocketClient.cpp
ocketListener.cpp
03f0d27f6c49530a91402ed42f8ca4b2fda04b9f 27-May-2009 San Mehat <san@google.com> libsysutils: Fix command argument passing bug + whitespace cleanup

Signed-off-by: San Mehat <san@google.com>
rameworkListener.cpp
etlinkEvent.cpp
ocketClient.cpp
ocketListener.cpp
db017545796747115b8797f03e662b0f398a7c7b 21-May-2009 San Mehat <san@google.com> libsysutils: const correctness fixes + remove some debugging

Signed-off-by: San Mehat <san@google.com>
rameworkClient.cpp
ocketClient.cpp
ocketListener.cpp
c41d1c8074ed02acc9d1e749d81e0aafb5efbbfa 14-May-2009 San Mehat <san@google.com> libsysutils: Introduce 'ServiceManager', for starting/stopping init services

Signed-off-by: San Mehat <san@google.com>
erviceManager.cpp
df6c1b91e3813886070f35929583c30cfaead918 13-May-2009 San Mehat <san@google.com> libsysutils: General clean up + disable build in simulator builds

Signed-off-by: San Mehat <san@google.com>
rameworkListener.cpp
ocketClient.cpp
ocketListener.cpp
dbdb0db516fa4935ff7b5c05914932099237d808 13-May-2009 San Mehat <san@google.com> libsysutils: Fix bug where we'd leak our control pipes when closing down a listener

Signed-off-by: San Mehat <san@google.com>
ocketListener.cpp
d530592848985ba4edeafeb413eb5ff58c138eab 12-May-2009 San Mehat <san@google.com> libsysutils: Send command arguments to the command, not the command again :P

Signed-off-by: San Mehat <san@google.com>
rameworkListener.cpp
d768066ef54270a0d3ccfccd50ae8238db5a2cdd 12-May-2009 San Mehat <san@google.com> libsysutils: Tweak SocketListener and friends

Signed-off-by: San Mehat <san@google.com>
rameworkListener.cpp
ocketClient.cpp
ocketListener.cpp
fa644ffe944c01a9b00f8d7676d58394fabee285 08-May-2009 San Mehat <san@google.com> libsysutils: Add multiple client support and fix some bugs
rameworkClient.cpp
rameworkCommand.cpp
rameworkListener.cpp
rameworkManager.cpp
etlinkListener.cpp
ocketClient.cpp
ocketListener.cpp
3d40729054803fae1c4d4bb5ac7554665a132b26 07-May-2009 San Mehat <san@google.com> libsysutils: Add string.h to includes

Signed-off-by: San Mehat <san@google.com>
rameworkListener.cpp
etlinkEvent.cpp
etlinkListener.cpp
168415b822cae1f8b54ef09c41c11a9b97b87f40 06-May-2009 San Mehat <san@google.com> libsysutils: New C++ system convenience library

This library contains re-usable classes for common
system level daemons. Initial consumers of this library
are 'nexus' and 'vold2'

Signed-off-by: San Mehat <san@google.com>
rameworkCommand.cpp
rameworkListener.cpp
rameworkManager.cpp
etlinkEvent.cpp
etlinkListener.cpp
ocketListener.cpp