summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorSreeram Ramachandran <sreeram@google.com>2014-04-09 17:44:56 -0700
committerSreeram Ramachandran <sreeram@google.com>2014-05-13 13:02:44 -0700
commitfd94922329a83c257dd8c65a4b1417a24d67db88 (patch)
treeb0b33043470836ca02bc751d0f3b087e69216bee /rootdir
parent905874abe45279d7c668e590d404880dd91b1869 (diff)
downloadsystem_core-fd94922329a83c257dd8c65a4b1417a24d67db88.zip
system_core-fd94922329a83c257dd8c65a4b1417a24d67db88.tar.gz
system_core-fd94922329a83c257dd8c65a4b1417a24d67db88.tar.bz2
Set kernel proc files for fwmark reflection and table numbers for RAs.
(cherry picked from commit 2c2807ac1041751583e0c3b6892ca56eae423fa2) Change-Id: I5f0d759cb9b8590555af7f5503f00d3e455ece54
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc7
1 files changed, 7 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 0ef097c..e289a02 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -105,6 +105,13 @@ loglevel 3
write /proc/sys/kernel/sched_rt_runtime_us 950000
write /proc/sys/kernel/sched_rt_period_us 1000000
+ # reflect fwmark from incoming packets onto generated replies
+ write /proc/sys/net/ipv4/fwmark_reflect 1
+ write /proc/sys/net/ipv6/fwmark_reflect 1
+
+ # set fwmark on accepted sockets
+ write /proc/sys/net/ipv4/tcp_fwmark_accept 1
+
# Create cgroup mount points for process groups
mkdir /dev/cpuctl
mount cgroup none /dev/cpuctl cpu