Skip to content

RDKCOM-5580: RDKBDEV-3433 RDKBWIFI-202 Implementation of Traffic Separation#263

Open
siddharth-nair-dtdl wants to merge 1 commit into
rdkcentral:developfrom
siddharth-nair-dtdl:RDKBWIFI-202
Open

RDKCOM-5580: RDKBDEV-3433 RDKBWIFI-202 Implementation of Traffic Separation#263
siddharth-nair-dtdl wants to merge 1 commit into
rdkcentral:developfrom
siddharth-nair-dtdl:RDKBWIFI-202

Conversation

@siddharth-nair-dtdl

@siddharth-nair-dtdl siddharth-nair-dtdl commented Mar 16, 2026

Copy link
Copy Markdown

Reason for change: Added traffic seperation TLV implementation via single bridge
Test Procedure: Verify build is successfull and check if traffic seperation is functional
Dependency: rdkcentral/OneWifi#972
Risks: Medium
Priority: P2

@siddharth-nair-dtdl siddharth-nair-dtdl requested review from a team as code owners March 16, 2026 10:25
@rdkcmf-jenkins

Copy link
Copy Markdown
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 1 file pending identification.

  • Protex Server Path: /home/blackduck/github/utopia/263/rdkb/components/opensource/ccsp/Utopia

  • Commit: 250ee7c

Report detail: gist'

@rdkcmf-jenkins

Copy link
Copy Markdown
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 1 file pending identification.

  • Protex Server Path: /home/blackduck/github/utopia/263/rdkb/components/opensource/ccsp/Utopia

  • Commit: 250ee7c

Report detail: gist'

@rdkcmf-jenkins

Copy link
Copy Markdown
Contributor

b'## WARNING: A Blackduck scan failure has been waived

A prior failure has been upvoted

  • Upvote reason: OK

  • Commit: 250ee7c
    '

@siddharth-nair-dtdl siddharth-nair-dtdl marked this pull request as draft March 17, 2026 06:10
@siddharth-nair-dtdl siddharth-nair-dtdl marked this pull request as ready for review March 17, 2026 06:10

bridge vlan del vid 1 dev wifi0
bridge vlan del vid 1 dev wifi0.1
bridge vlan del vid 1 dev wifi02

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there seems to be a typo as wifi02, there is already wifi0.2 in the below line

iptables -I INPUT -i brlan0.$vlan_mesh -p udp --dport 67:68 -j ACCEPT
iptables -I INPUT -i brlan0.$vlan_mesh -p udp --sport 67:68 -j ACCEPT
iptables -I INPUT -i brlan0.$vlan_iot -p udp --dport 67:68 -j ACCEPT
iptables -I INPUT -i brlan0.$vlan_iot -p udp --sport 67:68 -j ACCEPT

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation to be checked above

/*const char* SERVICE_CUSTOM_EVENTS[] = {
"lan-status|/etc/utopia/service.d/service_xhs.sh",
"multinet_2-status|/etc/utopia/service.d/service_xhs.sh",
"ipv4_5-status|/etc/utopia/service.d/service_xhs.sh",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation to be corrected

@sundar2k sundar2k changed the title RDKBWIFI-202: Implementation of Traffic Separation RDKBWIFI-202: RDKBDEV-3433: Implementation of Traffic Separation Apr 23, 2026
@pradeeptakdas pradeeptakdas changed the title RDKBWIFI-202: RDKBDEV-3433: Implementation of Traffic Separation RDKCOM-5580: RDKBDEV-3433 RDKBWIFI-202 Implementation of Traffic Separation Apr 23, 2026
@pradeeptakdas

Copy link
Copy Markdown

Hi @siddharth-nair-dtdl

Few places indentation need to be corrected, Can you please fix the review comments?

@AkhilaReddyK7

Copy link
Copy Markdown

@siddharth-nair-dtdl
Can you please address the review comments and update the PR.

@sundaresh-k-oss

Copy link
Copy Markdown

@AkhilaReddyK7 - We have updated the changes requested two weeks back. Can you please review the changes ?

Reason for change: Added traffic seperation TLV implementation via single bridge
Test Procedure: Verify build is successfull and check if traffic seperation is functional
Risks: Medium
Priority: P2
Copilot AI review requested due to automatic review settings June 19, 2026 05:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Implements a new vlan_ts (VLAN traffic separation) service intended to configure bridge VLAN filtering, per-SSID VLAN sub-interfaces, and inter-VLAN isolation rules, with new syscfg defaults and a service registration binary so the service can be managed by srvmgr.

Changes:

  • Added service_vlan_ts.sh to configure bridge VLANs, create VLAN subinterfaces, and apply iptables + dnsmasq changes.
  • Added default syscfg tuples for VLAN IDs on ARM.
  • Added 16_vlan_ts.c to register/unregister the vlan_ts service with srvmgr.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 14 comments.

File Description
source/scripts/init/service.d/service_vlan_ts.sh New service handler that configures bridge VLAN filtering, IPs, firewall rules, and modifies dnsmasq configuration.
source/scripts/init/defaults/system_defaults_arm Adds default syscfg tuples for VLAN IDs used by the new service.
source/scripts/init/c_registration/16_vlan_ts.c New srvmgr registration binary for the vlan_ts service.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +270 to +272
+$$vlan_id_pvt =12
+$$vlan_id_mesh=13
+$$vlan_id_iot=14
Comment on lines +1 to +3
SERVICE_NAME="vlan_ts"
source /etc/utopia/service.d/ulog_functions.sh
source /etc/utopia/service.d/ut_plat.sh
vlan_mesh=`syscfg get vlan_id_mesh`
vlan_iot=`syscfg get vlan_id_iot`

echo "service_start : START" >> /tmp/abc.txt
vlan_mesh=`syscfg get vlan_id_mesh`
vlan_iot=`syscfg get vlan_id_iot`

echo "service_stop : START " >> /tmp/abc.txt


service_init() {
echo "service_init : START " >> /tmp/abc.txt
Comment on lines +35 to +37
ifconfig brlan0.$vlan_pvt 192.168.13.1 netmask 255.255.255.0 up
ifconfig brlan0.$vlan_mesh 192.168.14.1 netmask 255.255.255.0 up
ifconfig brlan0.$vlan_iot 192.168.15.1 netmask 255.255.255.0 up
Comment on lines +39 to +45
const char* SERVICE_NAME = "vlan_ts";
const char* SERVICE_DEFAULT_HANDLER = "/etc/utopia/service.d/service_vlan_ts.sh";
const char* SERVICE_CUSTOM_EVENTS[] = { NULL };

void srv_register(void) {
sm_register(SERVICE_NAME, SERVICE_DEFAULT_HANDLER, SERVICE_CUSTOM_EVENTS);
}
switch(choice) {
case(nochoice):
case(start):
printf("%s %d : case start \n", __func__,__LINE__);
srv_register();
break;
case(stop):
printf("%s %d : case stop \n", __func__,__LINE__);
srv_unregister();
break;
case(restart):
printf("%s %d : case restart \n", __func__,__LINE__);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Contribution from community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants