Skip to content

RDKB-64265: Removing erouter0 hardcode for reusability for different wan interface#311

Open
rirfha948 wants to merge 1 commit into
developfrom
topic/RDKB-64265
Open

RDKB-64265: Removing erouter0 hardcode for reusability for different wan interface#311
rirfha948 wants to merge 1 commit into
developfrom
topic/RDKB-64265

Conversation

@rirfha948
Copy link
Copy Markdown
Contributor

Test Procedure:

  • Build OneStack Image

  • In Business-mode, Check dibbler server is started and server.conf has prefix-delegation class

  • In Residential-mode, check whether device behaves as a non-CBR device Risks: None Priority: P1

  • [] Is this a User Story (US)? This is a bug ticket

  • Have all dependent PRs from other components been listed ?

  • Does the commit message include both the User Story ticket and the Subtask ticket?

  • Will be all changes related to the User Story squashed and merged in a single commit?

  • Has the PR been raised only after completing all changes for the User Story (no partial changes)?

  • Has code development for the User Story been completed?

  • If yes, has the Gerrit topic or list of all dependent PRs across components (including meta-layer changes) been shared? https://gerrit.teamccp.com/#/c/953000/

  • Is there a validation log available in the Jira ticket for verifying builds with the updated generic-srcrev.inc across all platforms?

…ferent wan interface

Test Procedure:
  - Build OneStack Image
  - In Business-mode, Check dibbler server is started and server.conf has prefix-delegation class
  - In Residential-mode,  check whether device behaves as a non-CBR device Risks: None
Priority: P1

- [] Is this a User Story (US)?
   This is a bug ticket

- [x] Have all dependent PRs from other components been listed ?

- [x] Does the commit message include both the User Story ticket and the Subtask ticket?

- [x] Will be all changes related to the User Story squashed and merged in a single commit?

- [x]  Has the PR been raised only after completing all changes for the User Story (no partial changes)?

- [x] Has code development for the User Story been completed?

- [x] If yes, has the Gerrit topic or list of all dependent PRs across components (including meta-layer changes) been shared?
https://gerrit.teamccp.com/#/c/953000/

- [x] Is there a validation log available in the Jira ticket for verifying builds with the updated generic-srcrev.inc across all platforms?
Copilot AI review requested due to automatic review settings May 12, 2026 05:54
@rirfha948 rirfha948 requested review from a team as code owners May 12, 2026 05:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request makes small adjustments in the IPv6 firewall implementation, primarily around prefix buffer handling and a minor cleanup.

Changes:

  • Remove a duplicate memset() of ipv6_delegation_prefix.
  • Increase the local prefix buffer size used in routing rules and simplify its initialization.

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

Comment on lines 2131 to +2133
FIREWALL_DEBUG("Entering applyRoutingRules, ipv6_type is %d \n" COMMA type);
char prefix[64] ;
memset(prefix,0,sizeof(prefix));
char prefix[129];
prefix[0] = 0;
@rirfha948 rirfha948 changed the title Reason for change: Removing erouter0 hardcode for reusability for different wan interface RDKB-64265: Removing erouter0 hardcode for reusability for different wan interface May 12, 2026
FIREWALL_DEBUG("Entering applyRoutingRules, ipv6_type is %d \n" COMMA type);
char prefix[64] ;
memset(prefix,0,sizeof(prefix));
char prefix[129];
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.

define a macro , char prefix[BUF_SIZE + 1];
and why memset is removed ?

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