Patchwork [meta-fsl-ppc,5/5] procps: disabling reverse-path filtering

login
register
mail settings
Submitter Ting Liu
Date July 22, 2014, 10:32 a.m.
Message ID <1406025138-11195-5-git-send-email-ting.liu@freescale.com>
Download mbox | patch
Permalink /patch/76355/
State Accepted
Headers show

Comments

Ting Liu - July 22, 2014, 10:32 a.m.
From: Ting Liu <b28495@freescale.com>

rp_filter causes issues with VLAN interfaces.

Signed-off-by: Ting Liu <b28495@freescale.com>
---
 recipes-extended/procps/procps_%.bbappend     |    9 +++++++++
 recipes-extended/procps/procps_3.2.8.bbappend |    1 -
 2 files changed, 9 insertions(+), 1 deletions(-)
 create mode 100644 recipes-extended/procps/procps_%.bbappend
 delete mode 100644 recipes-extended/procps/procps_3.2.8.bbappend

Patch

diff --git a/recipes-extended/procps/procps_%.bbappend b/recipes-extended/procps/procps_%.bbappend
new file mode 100644
index 0000000..face0cc
--- /dev/null
+++ b/recipes-extended/procps/procps_%.bbappend
@@ -0,0 +1,9 @@ 
+do_install_append_qoriq-ppc() {
+    for keyword in \
+        net.ipv4.conf.default.rp_filter \
+        net.ipv4.conf.all.rp_filter \
+    ; do
+        sed -i 's,'"$keyword"'=.*,'"$keyword"'=0,' ${D}${sysconfdir}/sysctl.conf
+    done
+}
+
diff --git a/recipes-extended/procps/procps_3.2.8.bbappend b/recipes-extended/procps/procps_3.2.8.bbappend
deleted file mode 100644
index 72d991c..0000000
--- a/recipes-extended/procps/procps_3.2.8.bbappend
+++ /dev/null
@@ -1 +0,0 @@ 
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"