OSDN Git Service

android-x86/system-netd.git
11 years agoReplace system_nosh call with android_fork_execvp
Rom Lemarchand [Thu, 31 Jan 2013 20:41:03 +0000 (12:41 -0800)]
Replace system_nosh call with android_fork_execvp

Replace the system_nosh call with the android_fork_execvp from
liblogwrap.

Change-Id: Idfbc6bcf0bef16d4ee90d6af6bd4b07bc79913bb

11 years agoReplacing fork_and_execve with liblogwrap call
Rom Lemarchand [Thu, 24 Jan 2013 23:14:41 +0000 (15:14 -0800)]
Replacing fork_and_execve with liblogwrap call

Using the android_fork_exec call from liblogwrap rather than a
custom fork_and_execve.

Change-Id: If8f9a5442e5e3cfc887010268c360e55e733aef0

11 years agoMerge "netd: BandwidthController: Allow tracking loopback interfaces"
JP Abgrall [Thu, 7 Feb 2013 19:17:15 +0000 (19:17 +0000)]
Merge "netd: BandwidthController: Allow tracking loopback interfaces"

11 years agoMerge "dns cache per interface iteration 2"
Robert Greenwalt [Thu, 7 Feb 2013 19:02:32 +0000 (19:02 +0000)]
Merge "dns cache per interface iteration 2"

11 years agodns cache per interface iteration 2
Mattias Falk [Tue, 23 Aug 2011 12:21:38 +0000 (14:21 +0200)]
dns cache per interface iteration 2

support for attach/detach a process (pid) to a
dns cache.
lookup associated dns cache based on the pid
handle pid and interface argument for getaddrinfo
and gethostbyaddress

bug:5465296
Change-Id: I4832c792d22aceabb0481c548003a1fd879c12e4

11 years agonetd: BandwidthController: Allow tracking loopback interfaces
JP Abgrall [Thu, 7 Feb 2013 02:01:24 +0000 (18:01 -0800)]
netd: BandwidthController: Allow tracking loopback interfaces

In the past, loopback interfaces were of no use for bandwidth/datausage.
We now don't treat loopback interfaces any differently.
This will helps with CTS tests that checking the kernel's qtaguid functionality
and the matching user-space handling.

Change-Id: If307ceebc10f89269d1b051f666ec666e5e38d41

11 years agoMerge "Replace custom logwrapper implementation with liblogwrap"
Rom Lemarchand [Thu, 31 Jan 2013 20:31:23 +0000 (20:31 +0000)]
Merge "Replace custom logwrapper implementation with liblogwrap"

11 years agoReplace custom logwrapper implementation with liblogwrap
Rom Lemarchand [Thu, 24 Jan 2013 18:01:04 +0000 (10:01 -0800)]
Replace custom logwrapper implementation with liblogwrap

Use liblogwrap to provide logwrapper functionality instead of
using netd's own implementation.

Change-Id: I10e69aa95989f77c63b5b36825ee7c77fba48c88

11 years agoMerge "Revert "dns cache per interface iteration 2""
Robert Greenwalt [Sat, 19 Jan 2013 00:39:43 +0000 (00:39 +0000)]
Merge "Revert "dns cache per interface iteration 2""

11 years agoRevert "dns cache per interface iteration 2"
Robert Greenwalt [Sat, 19 Jan 2013 00:39:26 +0000 (00:39 +0000)]
Revert "dns cache per interface iteration 2"

This reverts commit 1c0a243bc22d69d32b758fd3da09ccc902c26225

Change-Id: I63d563df01b4bdc69a11037b1d72fdb4de5437db

11 years agoMerge "dns cache per interface iteration 2"
Robert Greenwalt [Thu, 17 Jan 2013 16:15:11 +0000 (16:15 +0000)]
Merge "dns cache per interface iteration 2"

11 years agoRemoved Throttle Controller as obsolete
Sasha Levitskiy [Tue, 15 Jan 2013 00:28:54 +0000 (16:28 -0800)]
Removed Throttle Controller as obsolete

Change-Id: I1a3c0e1a8690d0d5a8fb1411c49bc6db52ce5ccb

11 years agoam 3911886e: am d67cc366: resolved conflicts for merge of b40c2385 to jb-mr1.1-dev
Robert Greenwalt [Mon, 14 Jan 2013 20:00:37 +0000 (12:00 -0800)]
am 3911886e: am d67cc366: resolved conflicts for merge of b40c2385 to jb-mr1.1-dev

* commit '3911886e854d31058e7d3a6e310e8eafd06c02e0':
  Fix a TOCTOU and symlink attack in netd.

11 years agoam d67cc366: resolved conflicts for merge of b40c2385 to jb-mr1.1-dev
Robert Greenwalt [Mon, 14 Jan 2013 19:58:20 +0000 (11:58 -0800)]
am d67cc366: resolved conflicts for merge of b40c2385 to jb-mr1.1-dev

* commit 'd67cc366f769a84f56755b12d2c943113ec46f8c':
  Fix a TOCTOU and symlink attack in netd.

11 years agoresolved conflicts for merge of b40c2385 to jb-mr1.1-dev
Robert Greenwalt [Mon, 14 Jan 2013 19:46:38 +0000 (11:46 -0800)]
resolved conflicts for merge of b40c2385 to jb-mr1.1-dev

Change-Id: I0cef2141487ffd2cb5694a10e4077c299d9d7df7

11 years agoresolved conflicts for merge of 7b90f090 to jb-mr1-dev
Robert Greenwalt [Mon, 14 Jan 2013 18:18:55 +0000 (10:18 -0800)]
resolved conflicts for merge of 7b90f090 to jb-mr1-dev

Change-Id: Id5b6598b20f34b5e8d2c90927d2acfae7237e69b

11 years agoam 43682d94: Fix a TOCTOU and symlink attack in netd.
Robert Greenwalt [Mon, 14 Jan 2013 17:53:18 +0000 (09:53 -0800)]
am 43682d94: Fix a TOCTOU and symlink attack in netd.

* commit '43682d9474a2c89ddecc9fcc818df40e4f5424ee':
  Fix a TOCTOU and symlink attack in netd.

11 years agodns cache per interface iteration 2
Mattias Falk [Tue, 23 Aug 2011 12:21:38 +0000 (14:21 +0200)]
dns cache per interface iteration 2

support for attach/detach a process (pid) to a
dns cache.
lookup associated dns cache based on the pid
handle pid and interface argument for getaddrinfo
and gethostbyaddress

Change-Id: I325788973ad76beb1ada8f5fa6f52f9a94c08dd1
bug:5465296

11 years agoA rough cleanup of netd/softap
Sasha Levitskiy [Thu, 10 Jan 2013 20:48:39 +0000 (12:48 -0800)]
A rough cleanup of netd/softap

- Added error code propagation
- Added more elaborate error messages
- Added stricter parameter checking in softap fwreload
- Cleaned up class signatures
- Removed a non-working default AP in setSoftap
- Removed obsolete functions:
  - int addParam(int pos, const char *cmd, const char *arg);
  - int setCommand(char *iface, const char *fname, unsigned buflen=0);
- Removed unused "softap clients" functionality
- Removed unused hostapd communication socket

Change-Id: Iad05069f6547f4b17481991018707d5f9db2500a
Signed-off-by: Alexander Levitskiy <sanek@google.com>
11 years agoInform dnsmasq of the downstream ifaces.
Robert Greenwalt [Tue, 11 Dec 2012 20:33:37 +0000 (12:33 -0800)]
Inform dnsmasq of the downstream ifaces.

This lets it filter the dns requests so we're not a public dns forwarder/spambot.

bug:7530468
Change-Id: I102fad738aff717e6ac40d4ac5a8d39a6fe2d2ca

11 years agoFix a TOCTOU and symlink attack in netd.
Robert Greenwalt [Thu, 29 Nov 2012 23:44:25 +0000 (15:44 -0800)]
Fix a TOCTOU and symlink attack in netd.

Bug: 7530471
Change-Id: I3b0a38a203bdeba6c492a54fded056a16992e34e

11 years agoam 80436522: am e0644327: Fix a TOCTOU and symlink attack in netd.
Robert Greenwalt [Thu, 29 Nov 2012 23:12:32 +0000 (15:12 -0800)]
am 80436522: am e0644327: Fix a TOCTOU and symlink attack in netd.

* commit '80436522e8d027ddb31afada47fc2109b8afde8a':
  Fix a TOCTOU and symlink attack in netd.

11 years agoam e0644327: Fix a TOCTOU and symlink attack in netd.
Robert Greenwalt [Thu, 29 Nov 2012 22:28:25 +0000 (14:28 -0800)]
am e0644327: Fix a TOCTOU and symlink attack in netd.

* commit 'e0644327ffb203e0b45f3192fd888831902e267c':
  Fix a TOCTOU and symlink attack in netd.

11 years agoFix a TOCTOU and symlink attack in netd.
Robert Greenwalt [Thu, 29 Nov 2012 18:51:33 +0000 (10:51 -0800)]
Fix a TOCTOU and symlink attack in netd.

Bug: 7530471
Change-Id: I01fc79d647831dea903e4b852b874eb7bbed25fb

11 years agoMerge "Pass dns domain info to resolver."
Robert Greenwalt [Fri, 16 Nov 2012 20:22:13 +0000 (12:22 -0800)]
Merge "Pass dns domain info to resolver."

11 years agoPass dns domain info to resolver.
Robert Greenwalt [Tue, 13 Nov 2012 20:05:14 +0000 (12:05 -0800)]
Pass dns domain info to resolver.

bug:6799630
Change-Id: I2e1eb75562a7fba005f830ef1350386b9924a8a3

11 years agoam ce68e2bf: Merge "Launch android-clat via netd"
jp abgrall [Wed, 14 Nov 2012 18:52:45 +0000 (10:52 -0800)]
am ce68e2bf: Merge "Launch android-clat via netd"

* commit 'ce68e2bf2679ca90899d36ada62b78689d256fbe':
  Launch android-clat via netd

11 years agoMerge "Launch android-clat via netd"
jp abgrall [Wed, 14 Nov 2012 18:07:25 +0000 (10:07 -0800)]
Merge "Launch android-clat via netd"

11 years agoRevert "Launch android-clat via netd"
JP Abgrall [Wed, 14 Nov 2012 17:58:08 +0000 (09:58 -0800)]
Revert "Launch android-clat via netd"

This reverts commit 72d85556ec238f537de412ac69bbf43342e02d0c.

AOSP has caught up. Original author has prepared an updated version
of this.

11 years agoLaunch android-clat via netd
Daniel Drown [Wed, 20 Jun 2012 21:51:39 +0000 (16:51 -0500)]
Launch android-clat via netd

This patch adds the commands: "clatd start [interface]", "clatd stop", and
"clatd status"

Change-Id: I4b041d1f13c25108476621d2e2a1e5bac69841f5
Signed-off-by: Daniel Drown <dan-android@drown.org>
Depends-on: If2bc6916fc66fd4bca7cc241c83cfae839b82e15

11 years agoLaunch android-clat via netd
Daniel Drown [Tue, 13 Nov 2012 23:33:48 +0000 (15:33 -0800)]
Launch android-clat via netd

This patch adds the commands: "clatd start [interface]", "clatd stop", and
"clatd status"

Change-Id: I4b041d1f13c25108476621d2e2a1e5bac69841f5
Signed-off-by: Daniel Drown <dan-android@drown.org>
Depends-on: If2bc6916fc66fd4bca7cc241c83cfae839b82e15

11 years agoam f072e3d2: (-s ours) am a108106e: Reconcile with jb-mr1-factory-release jb-mr1...
The Android Open Source Project [Tue, 6 Nov 2012 20:34:09 +0000 (12:34 -0800)]
am f072e3d2: (-s ours) am a108106e: Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge

* commit 'f072e3d20531ca452a51bd45f863abb23f2e3968':

11 years agoam a108106e: Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge
The Android Open Source Project [Tue, 6 Nov 2012 20:30:08 +0000 (12:30 -0800)]
am a108106e: Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge

* commit 'a108106eb489a5e2b657d0afc63872334ba0f791':

11 years agoReconcile with jb-mr1-factory-release jb-mr1-release - do not merge
The Android Open Source Project [Tue, 6 Nov 2012 20:19:24 +0000 (12:19 -0800)]
Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge

Change-Id: I0a50c89812fb0f6e635a02ed4c9db690d749e3cf

11 years agoam a3103f9f: (-s ours) Reconcile with jb-mr1-release - do not merge
The Android Open Source Project [Mon, 24 Sep 2012 17:18:46 +0000 (10:18 -0700)]
am a3103f9f: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit 'a3103f9fe060e91fd6de0975ebe31ddeed88a9e4':

11 years agoReconcile with jb-mr1-release - do not merge
The Android Open Source Project [Mon, 24 Sep 2012 17:14:03 +0000 (10:14 -0700)]
Reconcile with jb-mr1-release - do not merge

Change-Id: I73a0aeb8cfaf12e12eee1b5d6f9549ef24895f62

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Fri, 21 Sep 2012 14:00:37 +0000 (07:00 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoam bdb84a1e: am 0b02d05f: remove Pan service which is not used anymore.
Zhihai Xu [Thu, 20 Sep 2012 19:56:44 +0000 (12:56 -0700)]
am bdb84a1e: am 0b02d05f: remove Pan service which is not used anymore.

* commit 'bdb84a1eb0bbb75648c4761c797fd179a5e1e893':
  remove Pan service which is not used anymore.

11 years agoam 0b02d05f: remove Pan service which is not used anymore.
Zhihai Xu [Thu, 20 Sep 2012 19:51:12 +0000 (12:51 -0700)]
am 0b02d05f: remove Pan service which is not used anymore.

* commit '0b02d05f1e2968643c42d10841dccedb63d33c48':
  remove Pan service which is not used anymore.

11 years agoremove Pan service which is not used anymore.
Zhihai Xu [Wed, 19 Sep 2012 19:13:10 +0000 (12:13 -0700)]
remove Pan service which is not used anymore.

because we replaced bluez bluetooth stack with bluedroid bluetooth stack.
This is multiple project check-in for ISSUE 6849488 Bluedroid stack, remove system/bluetooth.
Pan service depend on system/bluetooth. So both Pan service and system/bluetooth should be removed.

bug 6849488

Change-Id: I7a5a828b9b4327dbd6b6a13ec7ff4a9129ba0ca5

11 years agoam c2203765: (-s ours) Reconcile with jb-mr1-release - do not merge
The Android Open Source Project [Wed, 12 Sep 2012 23:59:15 +0000 (16:59 -0700)]
am c2203765: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit 'c2203765ea773939cc1a3fe3a77d887c91d0719b':

11 years agoam ddf62a13: am 40cdfe48: am 78b00d81: Merge "Don\'t include <linux/...> header files...
jp abgrall [Wed, 12 Sep 2012 22:36:03 +0000 (15:36 -0700)]
am ddf62a13: am 40cdfe48: am 78b00d81: Merge "Don\'t include <linux/...> header files directly."

* commit 'ddf62a13a066039782e4cb67c256b1489c46ed1f':
  Don't include <linux/...> header files directly.

11 years agoam e0f6082c: am 87482aa6: Demoting a non-critical error to a warning: unable to load...
Sasha Levitskiy [Wed, 12 Sep 2012 22:14:11 +0000 (15:14 -0700)]
am e0f6082c: am 87482aa6: Demoting a non-critical error to a warning: unable to load net cmd dll.

* commit 'e0f6082cf6f08c180ee2ef9fa90830068ff40804':
  Demoting a non-critical error to a warning: unable to load net cmd dll.

11 years agoReconcile with jb-mr1-release - do not merge
The Android Open Source Project [Wed, 12 Sep 2012 14:42:01 +0000 (07:42 -0700)]
Reconcile with jb-mr1-release - do not merge

Change-Id: I75192a980be37fe14baa5ee2cd5a69452c161b5e

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Wed, 12 Sep 2012 14:00:34 +0000 (07:00 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoam 40cdfe48: am 78b00d81: Merge "Don\'t include <linux/...> header files directly."
jp abgrall [Wed, 12 Sep 2012 04:13:29 +0000 (21:13 -0700)]
am 40cdfe48: am 78b00d81: Merge "Don\'t include <linux/...> header files directly."

* commit '40cdfe48dbf95d4cef7bbd47bd0c0e72f72bd390':
  Don't include <linux/...> header files directly.

11 years agoam 78b00d81: Merge "Don\'t include <linux/...> header files directly."
jp abgrall [Wed, 12 Sep 2012 04:11:49 +0000 (21:11 -0700)]
am 78b00d81: Merge "Don\'t include <linux/...> header files directly."

* commit '78b00d81ebb7e2720fe17c116bcfd086bdd1f4e7':
  Don't include <linux/...> header files directly.

11 years agoMerge "Don't include <linux/...> header files directly."
jp abgrall [Wed, 12 Sep 2012 03:38:42 +0000 (20:38 -0700)]
Merge "Don't include <linux/...> header files directly."

11 years agoDon't include <linux/...> header files directly.
Elliott Hughes [Wed, 12 Sep 2012 01:56:36 +0000 (18:56 -0700)]
Don't include <linux/...> header files directly.

These change from kernel release to release, and no longer contain some of
the stuff you need.

Change-Id: I3fc7176cf2246aebfc0aa2a833dfa04ea8d931fc

11 years agoam 87482aa6: Demoting a non-critical error to a warning: unable to load net cmd dll.
Sasha Levitskiy [Tue, 11 Sep 2012 18:49:48 +0000 (11:49 -0700)]
am 87482aa6: Demoting a non-critical error to a warning: unable to load net cmd dll.

* commit '87482aa6d64b835ce8f6485fd5b0953d939ed94f':
  Demoting a non-critical error to a warning: unable to load net cmd dll.

11 years agoDemoting a non-critical error to a warning: unable to load net cmd dll.
Sasha Levitskiy [Tue, 11 Sep 2012 18:04:29 +0000 (11:04 -0700)]
Demoting a non-critical error to a warning: unable to load net cmd dll.

Bug: 7141069
Change-Id: Ib4326f80fd562d845095bad38f45ceb9f3be119e

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Sun, 9 Sep 2012 14:01:50 +0000 (07:01 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoam 3504ab45: am bec6d04e: Add LOG_TAG to NetdConstants.
Jeff Sharkey [Thu, 6 Sep 2012 22:49:57 +0000 (15:49 -0700)]
am 3504ab45: am bec6d04e: Add LOG_TAG to NetdConstants.

* commit '3504ab455dba256138da9447fee1d150e18274cc':
  Add LOG_TAG to NetdConstants.

11 years agoam bec6d04e: Add LOG_TAG to NetdConstants.
Jeff Sharkey [Thu, 6 Sep 2012 22:48:30 +0000 (15:48 -0700)]
am bec6d04e: Add LOG_TAG to NetdConstants.

* commit 'bec6d04e1a84823b89e5581ea8ebcf9f08915216':
  Add LOG_TAG to NetdConstants.

11 years agoAdd LOG_TAG to NetdConstants.
Jeff Sharkey [Thu, 6 Sep 2012 22:45:56 +0000 (15:45 -0700)]
Add LOG_TAG to NetdConstants.

Bug: 7114117
Change-Id: Ifef2cfca6c1361f89ac68eead58df70efc58a8a7

12 years agoam eeca586b: (-s ours) Reconcile with jb-mr1-release - do not merge
The Android Open Source Project [Tue, 21 Aug 2012 23:09:59 +0000 (16:09 -0700)]
am eeca586b: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit 'eeca586bda0411d162307e1581e9308f5173592e':

12 years agoReconcile with jb-mr1-release - do not merge
The Android Open Source Project [Tue, 21 Aug 2012 23:07:47 +0000 (16:07 -0700)]
Reconcile with jb-mr1-release - do not merge

Change-Id: Ic385ef16d6d685014334b320ddb7f1929c34bfd3

12 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Tue, 21 Aug 2012 13:35:29 +0000 (06:35 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

12 years agoam 025aecc7: am 6e38211b: am 8a3da263: Merge "Fix race condition in pthread_create()"
Jean-Baptiste Queru [Mon, 20 Aug 2012 17:33:59 +0000 (10:33 -0700)]
am 025aecc7: am 6e38211b: am 8a3da263: Merge "Fix race condition in pthread_create()"

* commit '025aecc7180d09b73220c1218fcc002d00f2d6a2':
  Fix race condition in pthread_create()

12 years agoam 6e38211b: am 8a3da263: Merge "Fix race condition in pthread_create()"
Jean-Baptiste Queru [Mon, 20 Aug 2012 17:31:49 +0000 (10:31 -0700)]
am 6e38211b: am 8a3da263: Merge "Fix race condition in pthread_create()"

* commit '6e38211b93d37a599dcab1f24d95e4cdc0cd77f9':
  Fix race condition in pthread_create()

12 years agoam 8a3da263: Merge "Fix race condition in pthread_create()"
Jean-Baptiste Queru [Mon, 20 Aug 2012 17:29:40 +0000 (10:29 -0700)]
am 8a3da263: Merge "Fix race condition in pthread_create()"

* commit '8a3da263f9fde42efbc54d19465ebd1f83ba35cd':
  Fix race condition in pthread_create()

12 years agoMerge "Fix race condition in pthread_create()"
Jean-Baptiste Queru [Mon, 20 Aug 2012 16:20:10 +0000 (09:20 -0700)]
Merge "Fix race condition in pthread_create()"

12 years agoFix race condition in pthread_create()
Jurijs Oniscuks [Thu, 5 Jul 2012 13:35:05 +0000 (15:35 +0200)]
Fix race condition in pthread_create()

Do not send "&this->mThread" to pthread_create() as newly
created thread can "delete this" before pthread_create() saves
thread id. This would lead to heap corruption.

Change-Id: I9c4cd5e1002b85985514a36ae542778a783db6fb

12 years agoam d2c65351: (-s ours) Reconcile with jb-mr1-release - do not merge
The Android Open Source Project [Wed, 15 Aug 2012 15:32:39 +0000 (08:32 -0700)]
am d2c65351: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit 'd2c653514cd77fc8ce73c4da40ac9e2a9d4a74f5':

12 years agoReconcile with jb-mr1-release - do not merge
The Android Open Source Project [Wed, 15 Aug 2012 15:29:23 +0000 (08:29 -0700)]
Reconcile with jb-mr1-release - do not merge

Change-Id: I4f97bffedf3712fd3c7e07a797d54735a2c456c1

12 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Mon, 13 Aug 2012 15:10:30 +0000 (08:10 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

12 years agoam a4d40d29: am 5c4faf76: Fix idletimer iptable rules.
Haoyu Bai [Fri, 10 Aug 2012 22:41:39 +0000 (15:41 -0700)]
am a4d40d29: am 5c4faf76: Fix idletimer iptable rules.

* commit 'a4d40d299c0cc8e60f9729ae81d8012ce9c9edbf':
  Fix idletimer iptable rules.

12 years agoam 5c4faf76: Fix idletimer iptable rules.
Haoyu Bai [Fri, 10 Aug 2012 22:39:50 +0000 (15:39 -0700)]
am 5c4faf76: Fix idletimer iptable rules.

* commit '5c4faf7602de0268aa09a3a525b427f83d617b5c':
  Fix idletimer iptable rules.

12 years agoFix idletimer iptable rules.
Haoyu Bai [Thu, 26 Jul 2012 22:36:53 +0000 (15:36 -0700)]
Fix idletimer iptable rules.

Now idletimer should be triggered by every packet.

Cherry-picked from commit 8c54ec5de3818ff0c0cfc735c817be2516454415 in
master. DO NOT MERGE

Change-Id: I48e6fed5cb48edc51b5fbe87091e5dbb3f862cb7

12 years agoFix idletimer iptable rules.
Haoyu Bai [Thu, 26 Jul 2012 22:36:53 +0000 (15:36 -0700)]
Fix idletimer iptable rules.

Now idletimer should be triggered by every packet.

Change-Id: I8cc7c40ed9eb71ff6e7627ee9482c7e228d80f38

12 years agoMerge "TetherController: Use correct exit() after fork()+failed exec()."
JP Abgrall [Mon, 6 Aug 2012 22:39:50 +0000 (15:39 -0700)]
Merge "TetherController: Use correct exit() after fork()+failed exec()."

12 years agoTetherController: Use correct exit() after fork()+failed exec().
JP Abgrall [Mon, 6 Aug 2012 20:44:44 +0000 (13:44 -0700)]
TetherController: Use correct exit() after fork()+failed exec().

The bluetooth hack I98a1c8aedfa042b1824de7d8c69f2600c9bfcf29 uses the
wrong exit() after the exec() fail.
This will have undesirable effects like cpp destructors and atexit() funcs
being invoked which could have undesirable effects for the parent.
Also fixed other prior instance of fork()+exec()+"return"

Change-Id: I8c09472a371640a710c55fc18e020b9c152bf9cc

12 years agoam 8359c213: (-s ours) Reconcile with jb-mr1-release - do not merge
The Android Open Source Project [Mon, 6 Aug 2012 20:29:01 +0000 (13:29 -0700)]
am 8359c213: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit '8359c2138a4e6bad5340cc3d17160aa035f185b4':

12 years agoReconcile with jb-mr1-release - do not merge
The Android Open Source Project [Mon, 6 Aug 2012 20:26:45 +0000 (13:26 -0700)]
Reconcile with jb-mr1-release - do not merge

Change-Id: I2301113fa097ebe2ac744def2795a257290025b6

12 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Mon, 6 Aug 2012 13:29:41 +0000 (06:29 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

12 years agoam 329c3b46: Changes the interface command API from static lib to a dynamic one
Sasha Levitskiy [Thu, 2 Aug 2012 22:13:03 +0000 (15:13 -0700)]
am 329c3b46: Changes the interface command API from static lib to a dynamic one

* commit '329c3b4681e2ca4831adc7c8cf257e9e32971710':
  Changes the interface command API from static lib to a dynamic one

12 years agoChanges the interface command API from static lib to a dynamic one
Sasha Levitskiy [Mon, 30 Jul 2012 23:11:23 +0000 (16:11 -0700)]
Changes the interface command API from static lib to a dynamic one

Change-Id: I9116491a3f5dfc4590ffab367a224fde37a4fd50

12 years agoReconcile with jb-mr1-release
The Android Open Source Project [Mon, 30 Jul 2012 22:05:45 +0000 (15:05 -0700)]
Reconcile with jb-mr1-release

Change-Id: Iba2b369e6c6e79c79ca38617bb5ff58edcbface2

12 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Mon, 30 Jul 2012 16:46:15 +0000 (09:46 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

12 years agoMerge "Fix idletimer iptable rules."
Haoyu Bai [Sat, 28 Jul 2012 00:54:30 +0000 (17:54 -0700)]
Merge "Fix idletimer iptable rules."

12 years agonetd: Add initial interface driver command support
Dmitry Shmidt [Thu, 26 Jul 2012 23:08:02 +0000 (16:08 -0700)]
netd: Add initial interface driver command support

Change-Id: I1d34e43fc6a3336d0cd06e9db1069467382f210f
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
12 years agoFix idletimer iptable rules.
Haoyu Bai [Thu, 26 Jul 2012 22:36:53 +0000 (15:36 -0700)]
Fix idletimer iptable rules.

Now idletimer should be triggered by every packet.

Change-Id: I6c6ea70cb9b37a58dcb0fd8e88df5f987e5ef150

12 years agondc: get rid of arbritrary command length limit
Nick Kralevich [Fri, 20 Jul 2012 01:48:05 +0000 (18:48 -0700)]
ndc: get rid of arbritrary command length limit

Change-Id: I6123aa916a1f69bbfba58c26e6f150dfdec8c991

12 years agoMerge "Changed format of interface class acitivity message."
Haoyu Bai [Tue, 17 Jul 2012 23:53:40 +0000 (16:53 -0700)]
Merge "Changed format of interface class acitivity message."

12 years agoMerge "Introduce basic firewall controls."
Jeff Sharkey [Tue, 17 Jul 2012 21:05:56 +0000 (14:05 -0700)]
Merge "Introduce basic firewall controls."

12 years agoIntroduce basic firewall controls.
Jeff Sharkey [Sat, 14 Jul 2012 01:04:07 +0000 (18:04 -0700)]
Introduce basic firewall controls.

Creates a separate firewall chain that can be used to allow/deny
traffic based on rules.

Firewall is disabled by default.  When enabled, it supports four
types of rules: allowing traffic based on iface name, based on egress
source IP, based on egress destination IP and port, and based on
local UID.

Bug: 5756357
Change-Id: I97f894dca6bddb93b3c56478c5297f79d727cdab

12 years agoChanged format of interface class acitivity message.
Haoyu Bai [Tue, 17 Jul 2012 17:32:58 +0000 (10:32 -0700)]
Changed format of interface class acitivity message.

For the sake of consistency, format of interface class activity message
is changed to "NNN IfaceClass <active/idle> <label>" and using single
response code for interface class activity.

Change-Id: I34dc5c37cc611d05172060b2a1e4ceac0a0f0588

12 years agoHACK: Need to startup dhcpd for non-system bluetooth stack
Matthew Xie [Thu, 12 Jul 2012 23:42:07 +0000 (16:42 -0700)]
HACK: Need to startup dhcpd for non-system bluetooth stack

Add TODO comments to remove start/stopReverseTethering
Return error code with exit() in child process in startReverseTethering
when executing dhcpcd fails.
This is needed so we can get BT certification.
The cleanup is tracked in stopship b/6820232

Change-Id: I98a1c8aedfa042b1824de7d8c69f2600c9bfcf29

12 years agochange logx to alogx
Matthew Xie [Thu, 21 Jun 2012 20:40:02 +0000 (13:40 -0700)]
change logx to alogx

Change-Id: Ib535b04a6b18d5d35012795b07a705c6483f343d

12 years agoAdded bluetooth reverse tether start/stop cmd
zzy [Sun, 15 Apr 2012 00:24:24 +0000 (17:24 -0700)]
Added bluetooth reverse tether start/stop cmd

12 years agoConsolidate iptables chain management.
Jeff Sharkey [Fri, 13 Jul 2012 01:32:03 +0000 (18:32 -0700)]
Consolidate iptables chain management.

Move creation and management of module iptables chains up into
CommandListener, which gives better visibility into ordering.

Change-Id: If0c94187c6e59a20840b035d7241057f45a0f74b

12 years agoMerge "Add a class lable parameter to idletimer."
Haoyu Bai [Fri, 29 Jun 2012 22:06:19 +0000 (15:06 -0700)]
Merge "Add a class lable parameter to idletimer."

12 years agoAdd a class lable parameter to idletimer.
Haoyu Bai [Thu, 28 Jun 2012 23:16:51 +0000 (16:16 -0700)]
Add a class lable parameter to idletimer.

Now the idletimer should be setup by this command:
ndc idletimer add <interface> <timeout> <class label>

Class label can be a number or string to identify device type, such as
mobile or wifi. Idletimer will send label in the netd message instead
of the actual interface name.

Change-Id: Ic8b69dc5e38a4436c74723697905643a1214aa2a

12 years agonetd: interface: Allow setcfg command without addresses
Dmitry Shmidt [Wed, 20 Jun 2012 19:59:21 +0000 (12:59 -0700)]
netd: interface: Allow setcfg command without addresses

Change-Id: I47ebe05b2f3daf9754b4baf2e62d46dea76f67b1
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
12 years agoMerge "Clean up softap interface"
Irfan Sheriff [Wed, 20 Jun 2012 00:42:56 +0000 (17:42 -0700)]
Merge "Clean up softap interface"

12 years agoClean up softap interface
Irfan Sheriff [Fri, 15 Jun 2012 23:11:31 +0000 (16:11 -0700)]
Clean up softap interface

Remove old IOCTL based interface

Change-Id: I5c46964d025848ce8a0e0195ff213ccd8b33d508

12 years agoam 9997f9a3: resolved conflicts for merge of e36a3a2f to jb-dev-plus-aosp
Jean-Baptiste Queru [Fri, 15 Jun 2012 00:09:03 +0000 (17:09 -0700)]
am 9997f9a3: resolved conflicts for merge of e36a3a2f to jb-dev-plus-aosp

* commit '9997f9a3edac2baac244c2fe8e49685a3be9f482':
  Run dnsmasq with options --keep-in-foreground and --pid-file.

12 years agoresolved conflicts for merge of e36a3a2f to jb-dev-plus-aosp
Jean-Baptiste Queru [Thu, 14 Jun 2012 22:34:31 +0000 (15:34 -0700)]
resolved conflicts for merge of e36a3a2f to jb-dev-plus-aosp

Change-Id: I566b0e96327f318313c17a11d35539554b075f59

12 years agoMerge "Run dnsmasq with options --keep-in-foreground and --pid-file."
Jean-Baptiste Queru [Thu, 14 Jun 2012 20:12:30 +0000 (13:12 -0700)]
Merge "Run dnsmasq with options --keep-in-foreground and --pid-file."

12 years agoam c9ed2f47: (-s ours) Allow additional interface flags. Do not merge
Jeff Sharkey [Mon, 4 Jun 2012 21:01:44 +0000 (14:01 -0700)]
am c9ed2f47: (-s ours) Allow additional interface flags. Do not merge

* commit 'c9ed2f4706fa46e41a6ebbcd9a529d75c1ac84c5':
  Allow additional interface flags. Do not merge