Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
1ac11e6
RDKB-6079800: IPv6 Support for WiFi Hotspot
rirfha948 Sep 5, 2025
bd239f5
RDKB-6079800: IPv6 Support for WiFi Hotspot
rirfha948 Sep 5, 2025
f2f202b
SHARMAN-1210:Add telemetry support to report FW info from both banks …
suresh-sky Sep 19, 2025
317ac47
RDKB-61777: [utopia] Code development to remove _64BIT_ARCH_SUPPORT_ …
madhukrishnasmenon-comcast Sep 21, 2025
21eca34
RDKB-61612 : WAN Failover Utility is required in Ethwan mode similar …
Sep 24, 2025
57bf6d4
RDKB-6079800: IPv6 Support for WiFi Hotspot
rirfha948 Sep 5, 2025
3ff5155
Merge branch 'topic/RDKB-60736' of https://github.com/rdkcentral/utop…
rirfha948 Sep 26, 2025
b480b34
RDKB-6079800: IPv6 Support for WiFi Hotspot
rirfha948 Sep 26, 2025
7fc0ea6
RDKB-6079800: IPv6 Support for WiFi Hotspot
rirfha948 Sep 26, 2025
7969afb
Merge branch 'topic/RDKB-60736' of https://github.com/rdkcentral/utop…
rirfha948 Sep 26, 2025
ad4f5b0
RDKB-61612 : WAN Failover Utility is required in Ethwan mode simi…
suriya-prem Oct 6, 2025
8320171
Merge branch 'rdkcentral:develop' into develop
madhukrishnasmenon-comcast Oct 6, 2025
b6baa3f
Merge branch 'develop' into feature/wan_failover_sim
aadhithan01 Oct 9, 2025
064fa24
XB9-375 : [XB9] Upstream Utopia layer changes
Gowthamik93 Sep 10, 2025
64f30d5
RDKB-6079800: IPv6 Support for WiFi Hotspot
rirfha948 Oct 17, 2025
3a33406
Merge branch 'develop' into XB9-375
Gowthamik93 Oct 17, 2025
6acad06
Merge branch 'develop' into topic/SHARMAN-1210
suresh-sky Oct 17, 2025
dd34ffa
Merge pull request #53 from Gowthamik93/XB9-375
anoopchelakkode Oct 17, 2025
e9bd9dc
Merge branch 'develop' into develop
madhukrishnasmenon-comcast Oct 21, 2025
c244f15
Merge pull request #99 from madhukrishnasmenon-comcast/develop
anoopchelakkode Oct 21, 2025
8627882
Adding rule for handling https keyword filtering
nvenka781 Oct 22, 2025
77fe726
Corrected cherry-pick rebase
nvenka781 Oct 22, 2025
9715e7f
Add CHANGELOG.md for Release 1.2.1
SanthoshGujulvajagadeesh Oct 23, 2025
db5be00
Merge branch 'release/1.2.1'
SanthoshGujulvajagadeesh Oct 23, 2025
d652c3a
Merge tag '1.2.1' into develop
SanthoshGujulvajagadeesh Oct 23, 2025
5582956
Merge branch 'develop' into topic/RDKB-60736
snayak002c Oct 23, 2025
0d6cee3
Merge pull request #52 from rdkcentral/topic/RDKB-60736
snayak002c Oct 23, 2025
7837da6
RDKB-62232: Syntax error in /etc/utopia/service.d/service_ntpd.sh
roushan-tel Oct 27, 2025
2f34247
Merge branch 'develop' into topic/SHARMAN-1210
anoopchelakkode Oct 27, 2025
96601f5
Merge pull request #70 from suresh-sky/topic/SHARMAN-1210
anoopchelakkode Oct 27, 2025
ec6b08d
Merge branch 'develop' into feature/wan_failover_sim
snayak002c Oct 27, 2025
e01e270
Merge branch 'develop' into roushan-tel-patch-1
roushan-tel Oct 28, 2025
a823011
Merge pull request #111 from rdkcentral/roushan-tel-patch-1
apattu200 Oct 28, 2025
71f62ac
RDKB-62232: Syntax error in /etc/utopia/service.d/service_ntpd.sh
roushan-tel Oct 27, 2025
d101335
Add CHANGELOG.md for hotfix 1.2.2
SanthoshGujulvajagadeesh Oct 28, 2025
3dd5cf2
Merge branch 'hotfix/1.2.2'
SanthoshGujulvajagadeesh Oct 28, 2025
3b14a92
Merge tag '1.2.2' into develop
SanthoshGujulvajagadeesh Oct 28, 2025
015405e
Change add new chain to iptables-save file format
nvenka781 Oct 29, 2025
f56857d
Corrected chainname initializer
nvenka781 Oct 29, 2025
1033dd0
Fixed snprintf %d directive length issue
nvenka781 Oct 29, 2025
04d5da3
Presence Notification
rirfha948 Oct 30, 2025
952e5d8
Merge branch 'develop' into feature/wan_failover_sim
snayak002c Oct 30, 2025
14423f7
Merge pull request #97 from rdkcentral/feature/wan_failover_sim
snayak002c Oct 30, 2025
497e06f
XER10-1687-Observing intermittent ovsh crash
Sivagami27-Rasu Oct 30, 2025
ca1c664
Merge branch 'develop' into develop
Sivagami27-Rasu Oct 30, 2025
2632a79
Merge pull request #114 from Sivagami27-Rasu/develop
apattu200 Oct 30, 2025
0ba8176
Merge branch 'develop' into topic/RDKB-60798
snayak002c Oct 30, 2025
0e7374e
Merge pull request #115 from rdkcentral/topic/RDKB-60798
snayak002c Oct 30, 2025
0342575
revert of kernel_pid.max val set from utopia_init.sh file
Sivagami27-Rasu Nov 3, 2025
37bd7cc
Merge branch 'develop' into develop
Sivagami27-Rasu Nov 3, 2025
d4a6c6f
Merge pull request #117 from Sivagami27-Rasu/develop
apattu200 Nov 3, 2025
f7b2573
XB10-2198: SYS_SH_dnsmasq_restart is continuous with 8.2p5s1 upgrade
yashwaanth9820 Nov 4, 2025
f114ca7
Merge pull request #119 from yashwaanth9820/develop
apattu200 Nov 5, 2025
f098983
Add CHANGELOG.md for Release 1.3.0
SanthoshGujulvajagadeesh Nov 6, 2025
91965c7
Merge branch 'release/1.3.0'
SanthoshGujulvajagadeesh Nov 6, 2025
c866914
Merge tag '1.3.0' into develop
SanthoshGujulvajagadeesh Nov 6, 2025
5bba90a
TCXB8-3706 : SYS_SH_Syseventd_restart marker (#116)
abhishek-kumaracee2 Nov 7, 2025
3a2d147
Merge branch 'develop' into bug/TCXB8-3707_ranged
snayak002c Nov 11, 2025
1310681
Merge pull request #107 from rdkcentral/bug/TCXB8-3707_ranged
snayak002c Nov 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,50 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [1.3.0](https://github.com/rdkcentral/utopia/compare/1.2.2...1.3.0)

- XB10-2198: SYS_SH_dnsmasq_restart is continuous with 8.2p5s1 upgrade [`#119`](https://github.com/rdkcentral/utopia/pull/119)
- revert of kernel_pid.max val set from utopia_init.sh file [`#117`](https://github.com/rdkcentral/utopia/pull/117)
- RDKB-60798-IPv6 Support for WiFi Hotspot [`#115`](https://github.com/rdkcentral/utopia/pull/115)
- XER10-1687-Observing intermittent ovsh crash [`#114`](https://github.com/rdkcentral/utopia/pull/114)
- RDKB-61612 : WAN Failover Utility is required in Ethwan mode similar to DOCSIS [`#97`](https://github.com/rdkcentral/utopia/pull/97)
- RDKB-62232: Syntax error in /etc/utopia/service.d/service_ntpd.sh [`#111`](https://github.com/rdkcentral/utopia/pull/111)
- SHARMAN-1210:Add telemetry support to report FW info from both banks [`#70`](https://github.com/rdkcentral/utopia/pull/70)
- IPv6 support for WIFI hotspot [`#52`](https://github.com/rdkcentral/utopia/pull/52)
- Presence Notification [`04d5da3`](https://github.com/rdkcentral/utopia/commit/04d5da34148680adce639b27d63f790a5438832a)
- Merge tag '1.2.2' into develop [`3b14a92`](https://github.com/rdkcentral/utopia/commit/3b14a92d8a532ec9e34064eb5b0ddc861fe1c88f)
- Merge tag '1.2.1' into develop [`d652c3a`](https://github.com/rdkcentral/utopia/commit/d652c3a4266e78d843c330383c334f79a3e051ea)

#### [1.2.2](https://github.com/rdkcentral/utopia/compare/1.2.1...1.2.2)

> 28 October 2025

- Add CHANGELOG.md for hotfix 1.2.2 [`d101335`](https://github.com/rdkcentral/utopia/commit/d1013350a35701126277638f15726ada20e84ad9)
- RDKB-62232: Syntax error in /etc/utopia/service.d/service_ntpd.sh [`71f62ac`](https://github.com/rdkcentral/utopia/commit/71f62ac3e8601aaa4bb3147488bd40d49c127dfc)

#### [1.2.1](https://github.com/rdkcentral/utopia/compare/1.2.0...1.2.1)

> 23 October 2025

- RDKB-61777: [utopia] Code development to remove _64BIT_ARCH_SUPPORT_ macro [`#99`](https://github.com/rdkcentral/utopia/pull/99)
- XB9-429 : Upstream xb9 specific changes to github repo [`#53`](https://github.com/rdkcentral/utopia/pull/53)
- XF10-18 : XF10 Model support in Utopia Scripts [`#73`](https://github.com/rdkcentral/utopia/pull/73)
- RDKCOM-5434: RDKBDEV-3290,RDKBACCL-1052 fynecli connection was not established from remote ubuntu pc via 49153 port [`#47`](https://github.com/rdkcentral/utopia/pull/47)
- Update service_routed.c [`92feb43`](https://github.com/rdkcentral/utopia/commit/92feb43e4b9528b801ada6c7b6c5be286ba9329a)
- Update service_routed.c [`9eedf98`](https://github.com/rdkcentral/utopia/commit/9eedf983fbc74a4701b7e15226f2efea11040e8f)
- Add CHANGELOG.md for Release 1.2.1 [`9715e7f`](https://github.com/rdkcentral/utopia/commit/9715e7f5b7df31507f69a2e29e556b2baf5964d3)

#### [1.2.0](https://github.com/rdkcentral/utopia/compare/1.1.3...1.2.0)

> 9 October 2025

- Update CODEOWNERS [`#100`](https://github.com/rdkcentral/utopia/pull/100)
- Add the XF10 product common flag [`#72`](https://github.com/rdkcentral/utopia/pull/72)
- RDKB-59938 : Observing SYSCFG DB stored with junk values [`#61`](https://github.com/rdkcentral/utopia/pull/61)
- Deploy fossid_integration_stateless_diffscan_target_repo action [`#93`](https://github.com/rdkcentral/utopia/pull/93)
- Update CODEOWNERS [`#81`](https://github.com/rdkcentral/utopia/pull/81)
- Deploy cla action [`#82`](https://github.com/rdkcentral/utopia/pull/82)
- Add CHANGELOG.md for Release 1.2.0 [`29800ce`](https://github.com/rdkcentral/utopia/commit/29800ce8221a3251b5bab5fb0b43ded3ff82fab8)

#### [1.1.3](https://github.com/rdkcentral/utopia/compare/1.1.2...1.1.3)

Expand Down
119 changes: 100 additions & 19 deletions source/firewall/firewall.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* If not stated otherwise in this file or this component's Licenses.txt file the

Check failure on line 2 in source/firewall/firewall.c

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'source/firewall/firewall.c' (Match: rdkb/components/opensource/ccsp/Utopia/rdkb/components/opensource/ccsp/Utopia/2.1-20160229, 13131 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/Utopia/+archive/rdkb-2.1-20160229.tar.gz, file: source/firewall/firewall.c)

Check failure on line 2 in source/firewall/firewall.c

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'BSD-3-Clause' license found in local file 'source/firewall/firewall.c' (Match: rdkb/components/opensource/ccsp/Utopia/rdkb/components/opensource/ccsp/Utopia/1812, 13205 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/Utopia/+archive/rdk-dev-1812.tar.gz, file: source/firewall/firewall.c)

Check failure on line 2 in source/firewall/firewall.c

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'BSD-3-Clause' license found in local file 'source/firewall/firewall.c' (Match: rdkb/components/opensource/ccsp/Utopia/rdkb/components/opensource/ccsp/Utopia/fc67ea3, 13264 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/Utopia/+archive/fc67ea3f18571960905f44f7118bbc957f4094cc.tar.gz, file: source/firewall/firewall.c)

Check failure on line 2 in source/firewall/firewall.c

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'BSD-Intel' license found in local file 'source/firewall/firewall.c' (Match: rdkb/components/opensource/ccsp/Utopia/rdkb/components/opensource/ccsp/Utopia/1, 13264 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/Utopia/+archive/RDKB-TEST-RELEASE-1.tar.gz, file: source/firewall/firewall.c)

Check failure on line 2 in source/firewall/firewall.c

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'BSD-Intel' license found in local file 'source/firewall/firewall.c' (Match: rdkb/components/opensource/ccsp/Utopia/rdkb/components/opensource/ccsp/Utopia/1, 13264 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/Utopia/+archive/RDKB-RELEASE-TEST-DUNFELL-1.tar.gz, file: source/firewall/firewall.c)
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
Expand Down Expand Up @@ -697,6 +697,7 @@
bool isDefHttpsPortUsed = FALSE ;
int current_wan_ipv6_num = 0;
char default_wan_ifname[50]; // name of the regular wan interface
char hotspot_wan_ifname[50];
int rfstatus;
/*
* For timed internet access rules we use cron
Expand Down Expand Up @@ -2468,6 +2469,19 @@
pStr = NULL;
}
}

// Update WIFI hotspot interface name -> from PSM
memset(hotspot_wan_ifname,0,sizeof(hotspot_wan_ifname));
rc = PSM_VALUE_GET_STRING(PSM_HOTSPOT_WAN_IFNAME, pStr);
if(rc == CCSP_SUCCESS && pStr != NULL){
FIREWALL_DEBUG("HotSpot wan interface fetched \n");
safec_rc = strcpy_s(hotspot_wan_ifname, sizeof(hotspot_wan_ifname),pStr);
ERR_CHK(safec_rc);
Ansc_FreeMemory_Callback(pStr);
pStr = NULL;
}
FIREWALL_DEBUG(" line:%d current_wan_ifname:%s hotspot_wan_ifname %s \n" COMMA __LINE__ COMMA current_wan_ifname COMMA hotspot_wan_ifname);

memset(mesh_wan_ipv6addr,0,sizeof(mesh_wan_ipv6addr));
get_ip6address(mesh_wan_ifname, mesh_wan_ipv6addr, &mesh_wan_ipv6_num,IPV6_ADDR_SCOPE_GLOBAL);
#endif
Expand Down Expand Up @@ -5264,6 +5278,37 @@
return(0);
}

void applyHotspotPostRoutingRules(FILE *fp, bool isIpv4)
{
FIREWALL_DEBUG(" Entering applyHotspotPostRoutingRules \n");
char sysEventName[256];
if (isIpv4 == true)
{
if(strncmp(current_wan_ifname, hotspot_wan_ifname, strlen(current_wan_ifname) ) == 0)
{
FIREWALL_DEBUG("Apply Post Routing Rules for IPv4\n");
FIREWALL_DEBUG("Source natting all traffic on %s interface to %s address\n" COMMA current_wan_ifname COMMA current_wan_ipaddr);
fprintf(fp, "-A postrouting_towan -o %s -j SNAT --to-source %s\n" , current_wan_ifname, current_wan_ipaddr);
}
}
else
{
memset(current_wan_ip6_addr, 0, sizeof(current_wan_ip6_addr));
memset(sysEventName, 0, sizeof(sysEventName));
snprintf(sysEventName, sizeof(sysEventName),"tr_%s_dhcpv6_client_v6addr", hotspot_wan_ifname);
sysevent_get(sysevent_fd, sysevent_token, sysEventName, current_wan_ip6_addr, sizeof(current_wan_ip6_addr));

if(strncmp(current_wan_ifname, hotspot_wan_ifname, strlen(current_wan_ifname) ) == 0)
{
FIREWALL_DEBUG("Apply Post Routing Rules for IPv6\n");
FIREWALL_DEBUG("Source natting all traffic on %s interface to %s address\n" COMMA current_wan_ifname COMMA current_wan_ip6_addr);
fprintf(fp, "-A POSTROUTING -o %s -j SNAT --to-source %s\n", current_wan_ifname, current_wan_ip6_addr);
}

}
FIREWALL_DEBUG(" Exiting applyHotspotPostRoutingRules \n");
}

#if defined(_BWG_PRODUCT_REQ_)
/*
* Procedure : do_raw_table_staticip
Expand Down Expand Up @@ -5416,7 +5461,14 @@
#ifdef RDKB_EXTENDER_ENABLED
fprintf(fp, "-A postrouting_towan -j MASQUERADE\n");
#else
#ifdef WAN_FAILOVER_SUPPORTED
if (0 == checkIfULAEnabled())
{
applyHotspotPostRoutingRules(fp, true);
} else {
fprintf(fp, "-A postrouting_towan -j SNAT --to-source %s\n", natip4);
}
#endif
#endif
#if defined (FEATURE_MAPT) || defined (FEATURE_SUPPORT_MAPT_NAT46)
}
Expand Down Expand Up @@ -9311,30 +9363,59 @@
}
else if (strncasecmp(method, "KEYWD", 5)==0)
{
// consider the case that user input whole url.
if(strstr(query, "://") != 0) {
fprintf(fp, "-A lan2wan_pc_site -m string --string \"%s\" --algo kmp --icase -j %s\n", strstr(query, "://") + 3, drop_log);
#if defined(_HUB4_PRODUCT_REQ_) || defined (_RDKB_GLOBAL_PRODUCT_REQ_)
#if defined (_RDKB_GLOBAL_PRODUCT_REQ_)
if( 0 == strncmp( devicePartnerId, "sky-", 4 ) )
#endif
{
//In Hub4 keyword blocking feature is not working with FORWARD chain rules as CPE (dnsmasq) acts as DNS Proxy.
//Add rules in INPUT chain to resolve this issue.
fprintf(fp, "-I INPUT -i %s -j lan2wan_pc_site \n", lan_ifname);
}
#endif
const char *keyword = NULL;
int range_max = 1024; //max payload bytes to filter
int range_multiplier = 2;

// Extract keyword if user input is a full URL
if (strstr(query, "://") != NULL) {
keyword = strstr(query, "://") + 3;
} else {
fprintf(fp, "-A lan2wan_pc_site -m string --string \"%s\" --algo kmp --icase -j %s\n", query, drop_log);
keyword = query;
}

if (keyword == NULL || strlen(keyword) == 0) {
fprintf(stderr, "Warning: Empty keyword, skipping rule generation.\n");
return(0);
}

// Create rules for various ranges of payload to filter
int from,to;
for (from = 0, to = 64; from < range_max; from = to, to = (to * range_multiplier > range_max) ? range_max : to * range_multiplier)
{
char chainName[64] = {'\0'};

// Create new chain
// linux iptables chainname length is max 29 chars
snprintf(chainName, sizeof(chainName), "LOG_SiteBlk_KW_%d_%d", from, to);
fprintf(fp, ":%s - [0:0]\n", chainName);

// Add rule to jump to private chain if "Host:" is found in this offset range
fprintf(fp, "-A lan2wan_pc_site -p tcp --dport 80 -m string --string \"Host:\" --algo kmp --from %d --to %d --icase -j %s\n",
from, to, chainName);

// Add rule to match keyword in private chain within same offset range
fprintf(fp, "-A %s -m string --string \"%s\" --algo kmp --from %d --to %d --icase -j %s\n",
chainName, keyword, from, to, drop_log);

// Default rule to return if not matched
fprintf(fp, "-A %s -j RETURN\n", chainName);
}

// Add rule for https filter
fprintf(fp, "-A lan2wan_pc_site -p tcp --dport 443 -m string --string \"%s\" --algo kmp --icase -j %s\n",
keyword, drop_log);

#if defined(_HUB4_PRODUCT_REQ_) || defined (_RDKB_GLOBAL_PRODUCT_REQ_)
#if defined (_RDKB_GLOBAL_PRODUCT_REQ_)
if( 0 == strncmp( devicePartnerId, "sky-", 4 ) )
#endif
{
fprintf(fp, "-I INPUT -i %s -j lan2wan_pc_site \n", lan_ifname);
}
if( 0 == strncmp( devicePartnerId, "sky-", 4 ) )
#endif
{
//In Hub4 keyword blocking feature is not working with FORWARD chain rules as CPE (dnsmasq) acts as DNS Proxy.
//Add rules in INPUT chain to resolve this issue.
fprintf(fp, "-I INPUT -i %s -j lan2wan_pc_site \n", lan_ifname);
}
#endif
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions source/firewall/firewall.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ extern int sysevent_fd;
extern char sysevent_ip[19];
extern unsigned short sysevent_port;
#define PSM_VALUE_GET_STRING(name, str) PSM_Get_Record_Value2(bus_handle, CCSP_SUBSYS, name, NULL, &(str))
#define PSM_HOTSPOT_WAN_IFNAME "dmsb.wanmanager.if.3.Name"

int get_ip6address (char * ifname, char ipArry[][40], int * p_num, unsigned int scope_in);

Expand Down Expand Up @@ -347,6 +348,8 @@ extern char dev_type[20];
extern char mesh_wan_ifname[32];
#endif

void applyHotspotPostRoutingRules(FILE *fp, bool isIpv4);
extern char hotspot_wan_ifname[50];
extern int current_wan_ipv6_num;
extern char default_wan_ifname[50]; // name of the regular wan interface
extern char current_wan_ipv6[IF_IPV6ADDR_MAX][40];
Expand Down
28 changes: 23 additions & 5 deletions source/firewall/firewall_ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -1959,6 +1959,10 @@ void do_ipv6_sn_filter(FILE* fp) {
fprintf(fp, "-A PREROUTING -i %s -d %s -p ipv6-icmp -m icmp6 --icmpv6-type 135 -m limit --limit 20/sec -j ACCEPT\n", ifnames[i], mcastAddrStr);
/* NS Throttling rules for WAN and LAN */
fprintf(fp, "-A PREROUTING -i %s -p ipv6-icmp -m icmp6 --icmpv6-type 135 -m limit --limit 20/sec -j ACCEPT\n", ifnames[i]);
if(strncmp(current_wan_ifname, hotspot_wan_ifname, strlen(current_wan_ifname) ) == 0)
{
fprintf(fp, "-A INPUT -s %s -i %s -p ipv6-icmp -m icmp6 --icmpv6-type 133 -m limit --limit 100/sec -j ACCEPT\n" , current_wan_ip6_addr , current_wan_ifname);
}
fprintf(fp, "-A PREROUTING -i %s -p ipv6-icmp -m icmp6 --icmpv6-type 135 -j DROP\n", ifnames[i]);
}

Expand Down Expand Up @@ -2108,22 +2112,24 @@ int checkIfULAEnabled()

void applyIpv6ULARules(FILE* fp)
{
#ifdef RDKB_EXTENDER_ENABLED
#if defined (RDKB_EXTENDER_ENABLED)
if(strlen(current_wan_ipv6[0]) > 0)
{
FIREWALL_DEBUG("Source natting all traffic on %s interface to %s address\n" COMMA current_wan_ifname COMMA current_wan_ipv6);

fprintf(fp, "-A POSTROUTING -o %s -j MASQUERADE\n",current_wan_ifname);
FIREWALL_DEBUG("Source natting all traffic on %s interface to %s address\n" COMMA current_wan_ifname COMMA current_wan_ipv6);
fprintf(fp, "-A POSTROUTING -o %s -j MASQUERADE\n",current_wan_ifname);
}
#else
FIREWALL_DEBUG("Applying applyIpv6ULARules \n");
applyRoutingRules(fp,GLOBAL_IPV6);
applyRoutingRules(fp,ULA_IPV6);

#endif
}

#endif
void do_ipv6_nat_table(FILE* fp)
{
FIREWALL_DEBUG("Entering do_ipv6_nat_table \n");
char IPv6[INET6_ADDRSTRLEN] = "0";
fprintf(fp, "*nat\n");
fprintf(fp, ":%s - [0:0]\n", "prerouting_devices");
Expand Down Expand Up @@ -2217,7 +2223,19 @@ void do_ipv6_nat_table(FILE* fp)
}
}
#ifdef _PLATFORM_RASPBERRYPI_
fprintf(fp, "-A POSTROUTING -o %s -j MASQUERADE\n", current_wan_ifname);
if(strncmp(current_wan_ifname, hotspot_wan_ifname, strlen(current_wan_ifname) ) == 0)
{
#if defined (WAN_FAILOVER_SUPPORTED)
if (0 == checkIfULAEnabled())
{
applyHotspotPostRoutingRules(fp, false);
}
#endif
}
else
{
fprintf(fp, "-A POSTROUTING -o %s -j MASQUERADE\n", current_wan_ifname);
}
#endif

#ifdef _PLATFORM_BANANAPI_R4_
Expand Down
3 changes: 3 additions & 0 deletions source/igd/src/inc/igd_platform_dependent_inf.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@
#elif defined(_XER5_PRODUCT_REQ_)
#undef CONFIG_VENDOR_MODEL
#define CONFIG_VENDOR_MODEL "VTER11QEL"
#elif defined(_XB9_PRODUCT_REQ_)
#undef CONFIG_VENDOR_MODEL
#define CONFIG_VENDOR_MODEL "CWA438TCOM"
#elif defined(_XB10_PRODUCT_REQ_)
#undef CONFIG_VENDOR_MODEL
#if defined (IGD_SERCOMMXB10_INFO)
Expand Down
2 changes: 2 additions & 0 deletions source/scripts/init/defaults/system_defaults_arm
Original file line number Diff line number Diff line change
Expand Up @@ -1429,6 +1429,8 @@ $DscpSleepInterval_2=0
#Ccsp CMagent Docsis linkdown timeout default value is 900sec
$DocsisLinkDownTimeOut=900

#Ccsp Ethagent EWAN linkdown timeout default value is 900sec
$EWanLinkDownTimeout=900
#LLDEnable default value is false
$LldEnable=false

Expand Down
4 changes: 2 additions & 2 deletions source/scripts/init/service.d/pmon.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh

Check failure on line 1 in source/scripts/init/service.d/pmon.sh

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'BSD-Intel' license found in local file 'source/scripts/init/service.d/pmon.sh' (Match: rdkb/components/opensource/ccsp/Utopia/rdkb/components/opensource/ccsp/Utopia/1, 183 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/Utopia/+archive/RDKB-RELEASE-TEST-DUNFELL-1.tar.gz, file: source/scripts/init/service.d/pmon.sh)
##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
Expand Down Expand Up @@ -93,8 +93,8 @@

LOCAL_CONF_FILE=/tmp/pmon.conf$$

# Add static pmon entries
echo "syseventd /var/run/syseventd.pid /etc/utopia/service.d/syseventd_restart.sh" > $LOCAL_CONF_FILE
# Add static pmon entries - commented-out below line - selfheal takes care of it.
# echo "syseventd /var/run/syseventd.pid /etc/utopia/service.d/syseventd_restart.sh" > $LOCAL_CONF_FILE

# Add dynamic pmon entries stashed in sysevent
# by various modules
Expand Down
2 changes: 1 addition & 1 deletion source/scripts/init/service.d/service_crond.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ service_start ()
addCron "48 * * * * sh /etc/sky/monitor_dhd_dump.sh &"
fi

if [ "$BOX_TYPE" != "SR300" ] && [ "$BOX_TYPE" != "SE501" ] && [ "$BOX_TYPE" != "SR213" ] && [ "$BOX_TYPE" != "WNXL11BWL" ] && [ "$BOX_TYPE" != "SCER11BEL" ] && [ "$BOX_TYPE" != "SCXF11BFL" ]; then
if [ "$BOX_TYPE" != "SR300" ] && [ "$BOX_TYPE" != "SE501" ] && [ "$BOX_TYPE" != "WNXL11BWL" ] && [ "$BOX_TYPE" != "SCER11BEL" ] && [ "$BOX_TYPE" != "SCXF11BFL" ]; then
#RDKB-43895 log the firmware bank informations in selfheal log
echo "5 */12 * * * /usr/bin/FwBankInfo" >> $CRONTAB_FILE
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,7 @@ fi
echo "${PREFIX}""dhcp-option=l2sd0.4090,6,$WAN_DHCP_NS" >> $LOCAL_DHCP_CONF
fi

elif [ "$MODEL_NUM" = "CGM4331COM" ] || [ "$MODEL_NUM" = "CGM4981COM" ] || [ "$MODEL_NUM" = "CGM601TCOM" ] || [ "$MODEL_NUM" = "SG417DBCT" ] || [ "$MODEL_NUM" = "TG4482A" ] || [ "$BOX_TYPE" = "WNXL11BWL" ] || [ "$MODEL_NUM" = "CGA4332COM" ] || [ "$BOX_TYPE" = "SCER11BEL" ] || [ "$BOX_TYPE" = "SCXF11BFL" ] || [ "$BOX_TYPE" = "VNTXER5" ]; then
elif [ "$MODEL_NUM" = "CGM4331COM" ] || [ "$MODEL_NUM" = "CGM4981COM" ] || [ "$MODEL_NUM" = "CGM601TCOM" ] || [ "$MODEL_NUM" = "CWA438TCOM" ] || [ "$MODEL_NUM" = "SG417DBCT" ] || [ "$MODEL_NUM" = "TG4482A" ] || [ "$BOX_TYPE" = "WNXL11BWL" ] || [ "$MODEL_NUM" = "CGA4332COM" ] || [ "$BOX_TYPE" = "SCER11BEL" ] || [ "$BOX_TYPE" = "SCXF11BFL" ] || [ "$BOX_TYPE" = "VNTXER5" ]; then
echo "interface=brlan112" >> $LOCAL_DHCP_CONF
if [ "$BOX_TYPE" = "WNXL11BWL" ]; then
echo "dhcp-range=169.254.70.5,169.254.70.253,255.255.255.0,infinite" >> $LOCAL_DHCP_CONF
Expand Down
2 changes: 1 addition & 1 deletion source/scripts/init/service.d/service_ntpd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ service_start ()
fi #if [ -n "$QUICK_SYNC_WAN_IP" ]; then

if [ -n "$PEER_INTERFACE_IP" ]; then
if [ "$BOX_TYPE" != "HUB4" ] && [ "$BOX_TYPE" != "SR300" ] && [ "$BOX_TYPE" != "SE501" ] && [ "$BOX_TYPE" != "SR213" ] && [ "$BOX_TYPE" != "WNXL11BWL" ] && [ "$NTPD_IMMED_PEER_SYNC" != "true" ] && [ "$BOX_TYPE" != "SCER11BEL" ] || && [ "$BOX_TYPE" != "SCXF11BFL" ]; then
if [ "$BOX_TYPE" != "HUB4" ] && [ "$BOX_TYPE" != "SR300" ] && [ "$BOX_TYPE" != "SE501" ] && [ "$BOX_TYPE" != "SR213" ] && [ "$BOX_TYPE" != "WNXL11BWL" ] && [ "$NTPD_IMMED_PEER_SYNC" != "true" ] && [ "$BOX_TYPE" != "SCER11BEL" ] && [ "$BOX_TYPE" != "SCXF11BFL" ]; then
if [ -z "$SOURCE_PING_INTF" ]; then
MASK="255.255.255.0"
else
Expand Down
4 changes: 2 additions & 2 deletions source/scripts/init/system/utopia_init_xb6.sh
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ if [ "$FACTORY_RESET_REASON" = "true" ]; then
fi
syscfg set X_RDKCENTRAL-COM_LastRebootReason "factory-reset"
syscfg set X_RDKCENTRAL-COM_LastRebootCounter "1"
if [ "$MODEL_NUM" = "CGM4331COM" ] || [ "$MODEL_NUM" = "CGM4981COM" ] || [ "${MODEL_NUM}" = "CGM601TCOM" ] || [ "${MODEL_NUM}" = "SG417DBCT" ] || [ "$MODEL_NUM" = "CGM4140COM" ] || [ "$MODEL_NUM" = "CGA4332COM" ] || [ "$MODEL_NUM" = "TG4482A" ] || [ "$MODEL_NUM" = "INTEL_PUMA" ]; then
if [ "$MODEL_NUM" = "CGM4331COM" ] || [ "$MODEL_NUM" = "CGM4981COM" ] || [ "${MODEL_NUM}" = "CGM601TCOM" ] || [ "${MODEL_NUM}" = "SG417DBCT" ] || [ "${MODEL_NUM}" = "CWA438TCOM" ] || [ "$MODEL_NUM" = "CGM4140COM" ] || [ "$MODEL_NUM" = "CGA4332COM" ] || [ "$MODEL_NUM" = "TG4482A" ] || [ "$MODEL_NUM" = "INTEL_PUMA" ]; then
# Enable AUTOWAN by default for XB7, change is made here so that it will take effect only after FR
syscfg set selected_wan_mode "0"
fi
Expand All @@ -783,7 +783,7 @@ if [ "$FACTORY_RESET_REASON" = "true" ]; then
#syscfg set X_RDKCENTRAL-COM_LastRebootReason "WPS-Factory-Reset"
#syscfg set X_RDKCENTRAL-COM_LastRebootCounter "1"
rm -f /nvram/WPS_Factory_Reset
elif ([ "${MODEL_NUM}" = "CGM601TCOM" ] || [ "${MODEL_NUM}" = "SG417DBCT" ] || [ "${MODEL_NUM}" = "CVA601ZCOM" ]) && [ -f /nvram/.image_upgrade_and_FR_done ]; then
elif ([ "${MODEL_NUM}" = "CGM601TCOM" ] || [ "${MODEL_NUM}" = "SG417DBCT" ] || [ "${MODEL_NUM}" = "CWA438TCOM" ] || [ "${MODEL_NUM}" = "CVA601ZCOM" ]) && [ -f /nvram/.image_upgrade_and_FR_done ]; then
echo "[utopia][init] Detected last reboot reason as FirmwareDownloadAndFactoryReset"
if [ -e "/usr/bin/onboarding_log" ]; then
/usr/bin/onboarding_log "[utopia][init] Detected last reboot reason as FirmwareDownloadAndFactoryReset"
Expand Down
6 changes: 1 addition & 5 deletions source/sysevent/lib/sysevent.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* If not stated otherwise in this file or this component's Licenses.txt file the

Check failure on line 2 in source/sysevent/lib/sysevent.h

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'BSD-Intel' license found in local file 'source/sysevent/lib/sysevent.h' (Match: rdkb/components/opensource/ccsp/Utopia/rdkb/components/opensource/ccsp/Utopia/1, 1340 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/Utopia/+archive/RDKB-RELEASE-TEST-DUNFELL-1.tar.gz, file: source/include/sysevent/sysevent.h)
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
Expand Down Expand Up @@ -93,11 +93,7 @@
* as is commonly done for reading from an fd into a buffer
* and then using that buffer as a structure
*/
#ifdef _64BIT_ARCH_SUPPORT_
typedef char se_buffer[SE_MAX_MSG_SIZE+1] __attribute__ ((aligned(8)));
#else
typedef char se_buffer[SE_MAX_MSG_SIZE+1] __attribute__ ((aligned(4)));
#endif
typedef char se_buffer[SE_MAX_MSG_SIZE+1] __attribute__ ((aligned(sizeof(void*))));

/*
* Errors
Expand Down
Loading
Loading