From 7337a77ffcf7e8e3f7c2626094e50364c208d285 Mon Sep 17 00:00:00 2001 From: Parthiban Selvaraj <167313466+S-Parthiban-Selvaraj@users.noreply.github.com> Date: Thu, 17 Oct 2024 11:58:01 +0100 Subject: [PATCH] RDKB-57454 : Fixing ip_forward for MAPT line (#71) Reason for change: Fixing ip_forward proc entry for MAPT platforms Test Procedure: Updated in Jira. Risks: none Priority: P1 Signed-off-by: Parthiban Selvaraj --- source/WanManager/wanmgr_interface_sm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/WanManager/wanmgr_interface_sm.c b/source/WanManager/wanmgr_interface_sm.c index 6615828a..fa54f371 100644 --- a/source/WanManager/wanmgr_interface_sm.c +++ b/source/WanManager/wanmgr_interface_sm.c @@ -2717,6 +2717,10 @@ static eWanState_t wan_transition_mapt_up(WanMgr_IfaceSM_Controller_t* pWanIface WanManager_ConfigurePPPSession(p_VirtIf, FALSE); } + //Enabling IP forwarding + CcspTraceInfo(("%s %d - net.ipv4.ip_forward set to 1 \n", __FUNCTION__, __LINE__)); + v_secure_system("sysctl -w net.ipv4.ip_forward=1"); + #if defined(FEATURE_MAPT) /* Configure MAPT. */ if (WanManager_ProcessMAPTConfiguration(&(p_VirtIf->MAP.dhcp6cMAPTparameters), &(p_VirtIf->MAP.MaptConfig), pInterface->Name, p_VirtIf->IP.Ipv6Data.ifname) != RETURN_OK)