RDKCOM-5580: RDKBDEV-3433 RDKBWIFI-202 Implementation of Traffic Separation#263
RDKCOM-5580: RDKBDEV-3433 RDKBWIFI-202 Implementation of Traffic Separation#263siddharth-nair-dtdl wants to merge 1 commit into
Conversation
|
b'## WARNING: A Blackduck scan failure has been waived A prior failure has been upvoted
|
|
|
||
| bridge vlan del vid 1 dev wifi0 | ||
| bridge vlan del vid 1 dev wifi0.1 | ||
| bridge vlan del vid 1 dev wifi02 |
There was a problem hiding this comment.
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 |
| /*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", |
|
Few places indentation need to be corrected, Can you please fix the review comments? |
250ee7c to
2bd1a5a
Compare
|
@siddharth-nair-dtdl |
|
@AkhilaReddyK7 - We have updated the changes requested two weeks back. Can you please review the changes ? |
2bd1a5a to
9575cef
Compare
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
9575cef to
f08351f
Compare
There was a problem hiding this comment.
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.shto configure bridge VLANs, create VLAN subinterfaces, and apply iptables + dnsmasq changes. - Added default syscfg tuples for VLAN IDs on ARM.
- Added
16_vlan_ts.cto register/unregister thevlan_tsservice withsrvmgr.
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.
| +$$vlan_id_pvt =12 | ||
| +$$vlan_id_mesh=13 | ||
| +$$vlan_id_iot=14 |
| 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 |
| 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 |
| 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__); |
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