Skip to content

Commit

Permalink
RDKB-57454 : Fixing ip_forward for MAPT line (#71)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
S-Parthiban-Selvaraj committed Nov 20, 2024
1 parent 331c8cd commit 7337a77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/WanManager/wanmgr_interface_sm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7337a77

Please sign in to comment.