From 884d0630b3b24a04037387c7a463df07d37f3c22 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt <stefan.schmidt@huawei.com> Date: Fri, 4 Jun 2021 17:12:58 +0200 Subject: [PATCH] openthread: Gateway blueprint OTBR configuration Ensure we enable packet forwarding for IPv6 and IPv4. This is needed for a serving OpenThread network as well as WiFi AP services . Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com> --- .../openthread/ot-br-posix/60-otbr-ip-forward.conf | 2 ++ .../openthread/ot-br-posix_%.bbappend | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 meta-ohos-blueprints/recipes-connectivity/openthread/ot-br-posix/60-otbr-ip-forward.conf create mode 100644 meta-ohos-blueprints/recipes-connectivity/openthread/ot-br-posix_%.bbappend diff --git a/meta-ohos-blueprints/recipes-connectivity/openthread/ot-br-posix/60-otbr-ip-forward.conf b/meta-ohos-blueprints/recipes-connectivity/openthread/ot-br-posix/60-otbr-ip-forward.conf new file mode 100644 index 00000000..d6cc8871 --- /dev/null +++ b/meta-ohos-blueprints/recipes-connectivity/openthread/ot-br-posix/60-otbr-ip-forward.conf @@ -0,0 +1,2 @@ +net.ipv6.conf.all.forwarding = 1 +net.ipv4.ip_forward = 1 diff --git a/meta-ohos-blueprints/recipes-connectivity/openthread/ot-br-posix_%.bbappend b/meta-ohos-blueprints/recipes-connectivity/openthread/ot-br-posix_%.bbappend new file mode 100644 index 00000000..d8c49415 --- /dev/null +++ b/meta-ohos-blueprints/recipes-connectivity/openthread/ot-br-posix_%.bbappend @@ -0,0 +1,8 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/ot-br-posix:" + +SRC_URI_append = "file://60-otbr-ip-forward.conf" + +do_install_append() { + install -d ${D}${sysconfdir}/sysctl.d/ + install -m 0644 ${WORKDIR}/60-otbr-ip-forward.conf ${D}${sysconfdir}/sysctl.d/ +} -- GitLab