Lorenzo Colitti
c7eec83f08
Support parsing RDNSS ND options from netlink.
...
The RDNSS options (RFC 6106) used to configure DNS servers via
router advertisements are passed from the kernel to userspace via
RTM_NEWNDUSEROPT netlink messages. Add code to NetlinkEvent to
parse them.
Also fix a compiler warning and a couple of style issues.
[Cherry-pick of b185e90dcc
]
Bug: 9180552
Change-Id: I6c532c8f0ceef3afdc977a431a036df398013e1a
2013-11-20 10:31:19 +09:00
Lorenzo Colitti
526b838c9d
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.
[Cherry-pick of f34861346d
]
Bug: 10433320
Change-Id: Ibf30efb426949dfd02304cc1d9adb1c005a539a6
2013-11-20 10:29:42 +09:00
Lorenzo Colitti
9683456934
Get rid of an infinite loop in NetlinkEvent.cpp.
...
[Cherry-pick of 3984276ce4
]
Bug: 10358527
Bug: 10263310
Bug: 10232006
Change-Id: I750e4bdf2000040adf214d6a772591d7bd25b350
2013-11-20 10:29:19 +09:00
Lorenzo Colitti
381f70f52a
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.
[Cherry-pick of a4b4e9ad8e
]
Bug: 10232006
Change-Id: I93a50e8de17014e118a42f5cc0eb90a0cbfa73cc
2013-11-20 10:29:05 +09:00
Amir Goldstein
1d4e86c445
ueventd: fix a busy loop while reading uevents
...
Under certain conditions, poll() may raise the POLLERR
flag along with POLLIN, in which case the check for
(ufd.revents == POLLIN) results in an endless busy loop.
The following fix was applied to
hardware/libhardware_legacy/uevent/uevent.c
to fix a similar bug:
commit 3aabb260ceef10377c31c9e45fb239247f5cfeba
Author: Mathias Agopian <mathias@google.com>
Date: Mon Oct 1 14:53:18 2012 -0700
fix a typo in uevent_next_eventi
Bug: 7114973
Change-Id: I15a4c714b59aeb1d02db00517d70b5f0e5ab22c2
Applying the same fix for two more poll loops in init
and ueventd.
Change-Id: I50693f6d3c904992ac4b8a9a14a83c7106e6b9e0
2013-11-17 14:50:00 +02:00
Elliott Hughes
252d9030cd
am bf8e9342: am 3fa14a53: Merge "Remove x86 debuggerd dependencies on non-uapi headers and corkscrew."
...
* commit 'bf8e9342daa8b148e6d94d98122c9bc2a429b04f':
Remove x86 debuggerd dependencies on non-uapi headers and corkscrew.
2013-11-14 21:53:47 -08:00
Elliott Hughes
bf8e9342da
am 3fa14a53: Merge "Remove x86 debuggerd dependencies on non-uapi headers and corkscrew."
...
* commit '3fa14a53e70cd55df031646fe3735a6fde37deb8':
Remove x86 debuggerd dependencies on non-uapi headers and corkscrew.
2013-11-14 21:50:56 -08:00
Elliott Hughes
3fa14a53e7
Merge "Remove x86 debuggerd dependencies on non-uapi headers and corkscrew."
2013-11-15 05:48:27 +00:00
Jianzheng Zhou
52ea510f8f
split setptop ethernet tcp buffer from wifi
...
Change-Id: I0582ec75fddb904ca14b9cbddf593ddbd4195c41
Signed-off-by: Jianzheng Zhou <jianzheng.zhou@freescale.com>
2013-11-15 13:44:00 +08:00
Elliott Hughes
18ddd42092
Remove x86 debuggerd dependencies on non-uapi headers and corkscrew.
...
Also remove a hack that claims to be "just like ARM", but which was
different from the ARM and MIPS behavior.
Change-Id: I9b16da9a56430998ded27d304ce52c7cc8bfedfc
2013-11-14 17:06:46 -08:00
Elliott Hughes
fc6a1da9a2
am d97a34af: am 60e7d495: Merge "Fix libnetutils to build with clean uapi headers."
...
* commit 'd97a34af49f6beafc21d5f459ea62b499544f9f3':
Fix libnetutils to build with clean uapi headers.
2013-11-12 14:58:50 -08:00
Elliott Hughes
d97a34af49
am 60e7d495: Merge "Fix libnetutils to build with clean uapi headers."
...
* commit '60e7d49557a4a330285f9bcd76f0dfae9c1855ae':
Fix libnetutils to build with clean uapi headers.
2013-11-12 14:55:33 -08:00
Elliott Hughes
60e7d49557
Merge "Fix libnetutils to build with clean uapi headers."
2013-11-12 21:56:01 +00:00
Elliott Hughes
2d640c2640
Fix libnetutils to build with clean uapi headers.
...
(And old ones too.)
Bug: 11559337
Change-Id: Ie61218055bbe07655a9d53c539aa47b85098e42c
2013-11-12 13:05:01 -08:00
Elliott Hughes
36ff3bd273
am e8c6d15b: am 59644a6c: Merge "Fix nandread to build with old or uapi headers."
...
* commit 'e8c6d15b1892ffd09dae8ac7922854140a11130d':
Fix nandread to build with old or uapi headers.
2013-11-11 16:33:30 -08:00
Elliott Hughes
e8c6d15b18
am 59644a6c: Merge "Fix nandread to build with old or uapi headers."
...
* commit '59644a6c7182db6caf53dc61f448f2c68ff569be':
Fix nandread to build with old or uapi headers.
2013-11-11 16:31:57 -08:00
Elliott Hughes
59644a6c71
Merge "Fix nandread to build with old or uapi headers."
2013-11-12 00:29:10 +00:00
Elliott Hughes
b05a2e5130
Fix nandread to build with old or uapi headers.
...
Bug: 11559337
Change-Id: I9795a16649dafdfe3df150170265157170cd5a79
2013-11-11 16:17:49 -08:00
Christopher Ferris
90e67bcdc3
am d36bfc30: am e6279294: Merge "Revert "Revert enabling libunwind.""
...
* commit 'd36bfc30ae5fa86b4c3fd8248e5ee16f479250b6':
Revert "Revert enabling libunwind."
2013-11-07 19:16:25 -08:00
Christopher Ferris
d36bfc30ae
am e6279294: Merge "Revert "Revert enabling libunwind.""
...
* commit 'e627929490dfb92ab51ec6feb259d793a4a9f394':
Revert "Revert enabling libunwind."
2013-11-07 19:14:31 -08:00
Christopher Ferris
e627929490
Merge "Revert "Revert enabling libunwind.""
2013-11-08 03:12:04 +00:00
Christopher Ferris
e6feaeeda1
Revert "Revert enabling libunwind."
...
This reverts commit db2309e3d1
.
Change-Id: I1626442f029473066ce20921667a406f1a1ea865
2013-11-08 02:59:52 +00:00
Elliott Hughes
8ddd08b1f2
am 4ae94541: am 62ea993a: Merge "Revert enabling libunwind."
...
* commit '4ae94541b82dde787b0e2c46f1a4f2524572c1c4':
Revert enabling libunwind.
2013-11-07 09:41:57 -08:00
Elliott Hughes
4ae94541b8
am 62ea993a: Merge "Revert enabling libunwind."
...
* commit '62ea993a6997701dba7735ca4a4af6fc6cabac2c':
Revert enabling libunwind.
2013-11-07 09:01:20 -08:00
Elliott Hughes
2ee985913f
am fde641ee: am 30296f28: Merge "Let external/mksh install directly into /system/bin/sh."
...
* commit 'fde641ee24b7a0a5d1fb6e2532153f1bb8504aea':
Let external/mksh install directly into /system/bin/sh.
2013-11-07 08:59:22 -08:00
Christopher Ferris
c3920dee10
am 11d04d04: am 351b0123: Merge "Enable libunwind on arm platforms."
...
* commit '11d04d04418503e2381cf4479a105efaf7c13992':
Enable libunwind on arm platforms.
2013-11-07 08:59:22 -08:00
Elliott Hughes
62ea993a69
Merge "Revert enabling libunwind."
2013-11-07 16:44:53 +00:00
Elliott Hughes
fde641ee24
am 30296f28: Merge "Let external/mksh install directly into /system/bin/sh."
...
* commit '30296f2801ee692a01c3a4698f50ca01fa238fd1':
Let external/mksh install directly into /system/bin/sh.
2013-11-07 08:35:18 -08:00
Christopher Ferris
11d04d0441
am 351b0123: Merge "Enable libunwind on arm platforms."
...
* commit '351b0123084570f8274ad3de44d515754c4b3add':
Enable libunwind on arm platforms.
2013-11-07 08:35:16 -08:00
Christopher Ferris
db2309e3d1
Revert enabling libunwind.
...
It appears that some branches might not have libunwind set up properly.
Change-Id: Ia72889e115bc2791c7a9e67563c5f4a62197cafd
2013-11-07 08:12:10 -08:00
Elliott Hughes
30296f2801
Merge "Let external/mksh install directly into /system/bin/sh."
2013-11-07 16:08:12 +00:00
Christopher Ferris
351b012308
Merge "Enable libunwind on arm platforms."
2013-11-07 15:16:11 +00:00
Christopher Ferris
aca6a4c8af
am 5e860ce2: am d6f9be1b: Merge "Fix include files in backtrace.h."
...
* commit '5e860ce246b9235debc6a04325c7c1983c2b277e':
Fix include files in backtrace.h.
2013-11-06 17:47:16 -08:00
Christopher Ferris
5e860ce246
am d6f9be1b: Merge "Fix include files in backtrace.h."
...
* commit 'd6f9be1b9a2fc5880b0bcbb0fa47267a14fdc734':
Fix include files in backtrace.h.
2013-11-06 17:45:08 -08:00
Christopher Ferris
d6f9be1b9a
Merge "Fix include files in backtrace.h."
2013-11-07 01:42:48 +00:00
Christopher Ferris
e57912da92
Fix include files in backtrace.h.
...
(cherry picked from commit 0893258222
)
Change-Id: I37a78a9472b94ae84a84d871bfa9a070ff882699
2013-11-06 17:34:38 -08:00
Christopher Ferris
22f91cb3a1
Enable libunwind on arm platforms.
...
Bug: 8410085
Change-Id: I8a645ec0e04b38fc186bbc0f0cc597e31b05cc55
2013-11-06 15:40:23 -08:00
Christopher Ferris
dee1842d2f
am adbb3352: am a2d1469c: Merge "Use new defines in test code."
...
* commit 'adbb3352e9ce98e2012fa136198daa8342bdac00':
Use new defines in test code.
2013-11-05 12:19:00 -08:00
Christopher Ferris
adbb3352e9
am a2d1469c: Merge "Use new defines in test code."
...
* commit 'a2d1469c773d809261d830d2f3cb3f6a7b6cdade':
Use new defines in test code.
2013-11-05 12:17:10 -08:00
Christopher Ferris
a2d1469c77
Merge "Use new defines in test code."
2013-11-05 20:15:29 +00:00
Christopher Ferris
7f081ec079
Use new defines in test code.
...
In addition, fix up the warnings and remove the -fpermissive when
compiling.
Change-Id: Ia27b902499b34ff3d881acb9057120af390baf2c
2013-11-05 12:13:05 -08:00
Christopher Ferris
2e47c8ac74
am 1e1bae1b: am c2945850: Merge "Add some clarifying defines."
...
* commit '1e1bae1b0fc750f60ef9a2531850bbcf27ba6610':
Add some clarifying defines.
2013-11-05 11:48:55 -08:00
Christopher Ferris
1e1bae1b0f
am c2945850: Merge "Add some clarifying defines."
...
* commit 'c2945850e58f4ef50f3e3534ce50306262375d37':
Add some clarifying defines.
2013-11-05 11:44:33 -08:00
Christopher Ferris
c2945850e5
Merge "Add some clarifying defines."
2013-11-05 19:29:36 +00:00
Elliott Hughes
09b3598761
Let external/mksh install directly into /system/bin/sh.
...
Change-Id: I3ac60af2b5c6bba98c33cb63952eb4d35676d73f
2013-11-05 11:12:56 -08:00
Christopher Ferris
cbfc7302fb
Add some clarifying defines.
...
In order to be explicit in the Backtrace::Create() calls, adding a couple
of defines and some comments to describe what they mean.
Change-Id: I6ad08c529791821496a95fa33cea1c95b0a7eada
2013-11-05 11:05:32 -08:00
Elliott Hughes
f6e11efd07
am f4b3b73e: am c8626ba4: Merge "Dispose of ash."
...
* commit 'f4b3b73e95422afe79d5c5e7d28b0fcdfeaa7e88':
Dispose of ash.
2013-11-05 10:31:46 -08:00
Christopher Ferris
4ddea7f44c
am d5a7c371: am 408b3acf: Merge "Add corkscrew support for finding static symbols."
...
* commit 'd5a7c371d22ea327be03bfa10944e5f0f2d51a24':
Add corkscrew support for finding static symbols.
2013-11-05 10:31:45 -08:00
Elliott Hughes
f4b3b73e95
am c8626ba4: Merge "Dispose of ash."
...
* commit 'c8626ba480c0e2cab4f4d2fe43bd8f741320b404':
Dispose of ash.
2013-11-05 10:30:02 -08:00
Christopher Ferris
d5a7c371d2
am 408b3acf: Merge "Add corkscrew support for finding static symbols."
...
* commit '408b3acf5e0b0d353cf8b64598f285141d1a0116':
Add corkscrew support for finding static symbols.
2013-11-05 10:29:46 -08:00