Skip to content

RDKBACCL-1853 SSH not working - Ethernet Configurable WAN Interface I…#351

Open
anatar818 wants to merge 10 commits into
developfrom
anatar818-patch-1
Open

RDKBACCL-1853 SSH not working - Ethernet Configurable WAN Interface I…#351
anatar818 wants to merge 10 commits into
developfrom
anatar818-patch-1

Conversation

@anatar818

Copy link
Copy Markdown

…ntegration

SSH not working - Ethernet Configurable WAN Interface Integration Modified the code to make it more generic and allow customised wan interface for the configurable wan feature

…ntegration

SSH not working - Ethernet Configurable WAN Interface Integration
Modified the code to make it more generic and allow customised wan interface for the configurable wan feature
Copilot AI review requested due to automatic review settings June 19, 2026 10:39
@anatar818 anatar818 requested review from a team as code owners June 19, 2026 10: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

This PR adjusts the IPv4 firewall SSH (port 22) rule generation to support the “Ethernet Configurable WAN Interface” integration, so SSH filtering is applied on the appropriate WAN interface when the WAN interface name is customized at build-time.

Changes:

  • Updates the ETH WAN SSH rule selection logic under FEATURE_RDKB_CONFIGURABLE_WAN_INTERFACE to prefer the active/current WAN interface instead of forcing the default interface.
  • Adds conditional compilation around the SSH interface-selection check to preserve legacy behavior when the feature flag is not enabled.

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

Comment thread source/firewall/firewall.c Outdated
Comment on lines +12482 to +12486
#ifdef FEATURE_RDKB_CONFIGURABLE_WAN_INTERFACE
if (strcmp(current_wan_ifname, default_wan_ifname ) != 0)
#else
if (strcmp(current_wan_ifname, default_wan_ifname ) == 0)
#endif
Copilot AI review requested due to automatic review settings June 22, 2026 07:22

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread source/firewall/firewall.c
snayak002c
snayak002c previously approved these changes Jun 22, 2026
Copilot AI review requested due to automatic review settings July 1, 2026 13:51

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread source/firewall/firewall.c Outdated
Comment thread source/firewall/firewall.c Outdated
anatar818 and others added 2 commits July 1, 2026 19:29
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 1, 2026 14:01
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread source/firewall/firewall.c
Comment thread source/firewall/firewall.c
Comment thread source/firewall/firewall.c
Copilot AI review requested due to automatic review settings July 2, 2026 10:38

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread source/firewall/firewall.c
Comment thread source/firewall/firewall.c
Copilot AI review requested due to automatic review settings July 2, 2026 12:57

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment on lines +2385 to +2394
#ifdef FEATURE_RDKB_CONFIGURABLE_WAN_INTERFACE
if ('\0' == current_wan_ifname[0]) {
char wanInterface[BUFLEN_64] = {'\0'};
syscfg_get(NULL, "wan_physical_ifname", wanInterface, sizeof(wanInterface));
if(wanInterface[0] != '\0')
snprintf(current_wan_ifname, sizeof(current_wan_ifname), "%s", wanInterface);
else
snprintf(current_wan_ifname, sizeof(current_wan_ifname), "%s", default_wan_ifname);
}
#else
Copilot AI review requested due to automatic review settings July 2, 2026 13:00

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment on lines +2386 to +2393
if ('\0' == current_wan_ifname[0]) {
char wanInterface[BUFLEN_64] = {'\0'};
syscfg_get(NULL, "wan_physical_ifname", wanInterface, sizeof(wanInterface));
if(wanInterface[0] != '\0')
snprintf(current_wan_ifname, sizeof(current_wan_ifname), "%s", wanInterface);
else
snprintf(current_wan_ifname, sizeof(current_wan_ifname), "%s", default_wan_ifname);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants