-
Notifications
You must be signed in to change notification settings - Fork 12
RDKB-63098: [ONESTACK]-Handle IPv6 delegation for business vs residential Partner ID as part of single build #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -241,6 +241,7 @@ AM_CONDITIONAL(VOICE_MTA_SUPPORT, test x"$voice_support" = x"yes") | |||
| # Check ra_monitor_support | ||||
| AM_CONDITIONAL([RA_MONITOR_SUPPORT], [test "$RA_MONITOR_SUPPORT" = "yes"]) | ||||
|
|
||||
| AM_CONDITIONAL([ONESTACK_PRODUCT_REQ], [test "x$ONESTACK_PRODUCT_REQ" = "xtrue"]) | ||||
|
||||
| AM_CONDITIONAL([ONESTACK_PRODUCT_REQ], [test "x$ONESTACK_PRODUCT_REQ" = "xtrue"]) |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -25,7 +25,10 @@ | |||||
| #include "dhcpmgr_recovery_handler.h" | ||||||
| #include "dhcpmgr_custom_options.h" | ||||||
| #include "ifl.h" | ||||||
|
|
||||||
| #if defined(_ONESTACK_PRODUCT_REQ_) | ||||||
|
||||||
| #if defined(_ONESTACK_PRODUCT_REQ_) | |
| #if defined(ONESTACK_PRODUCT_REQ) || defined(_ONESTACK_PRODUCT_REQ_) |
Copilot
AI
Feb 26, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line uses a tab character for indentation, which is inconsistent with the surrounding code that uses spaces. The codebase appears to use spaces for indentation (as seen in lines 294, 298-302). Please use consistent spacing to match the rest of the file.
| {ia_pd_prefix, COSA_DML_WANIface_PREF_DELEGATION_SYSEVENT_NAME}, | |
| {ia_pd_prefix, COSA_DML_WANIface_PREF_DELEGATION_SYSEVENT_NAME}, |
Copilot
AI
Feb 26, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the PR description, this change should "Handle IPv6 delegation for business vs residential Partner ID as part of single build" with different behavior in Business-mode versus Residential-mode. However, the current implementation unconditionally adds the prefix delegation sysevent whenever ONESTACK_PRODUCT_REQ is defined, without any runtime check to distinguish between business and residential modes. If runtime mode differentiation is required as suggested by the PR description, the code should use the rdkb_feature_mode_gate.h header to check the device mode and conditionally set the sysevent accordingly. Otherwise, if compile-time differentiation is sufficient, the PR description should be clarified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AM_CONDITIONAL([ONESTACK_PRODUCT_REQ], ...)only controls Automake conditionals; it does not define a C preprocessor macro. Since the code changes are guarded by_ONESTACK_PRODUCT_REQ_, you likely need to eitherAC_DEFINEa matching macro (or arrange forCPPFLAGSto define it) when this configure option is enabled, otherwise the ONESTACK-specific code path won’t be compiled.