Skip to content

Two add - #224

Open
arunraju001 wants to merge 1 commit into
rdkcentral:mainfrom
arunraju001:remotes/origin/stubtest
Open

Two add#224
arunraju001 wants to merge 1 commit into
rdkcentral:mainfrom
arunraju001:remotes/origin/stubtest

Conversation

@arunraju001

Copy link
Copy Markdown

cehcking

Copilot AI review requested due to automatic review settings July 30, 2026 05:29
@arunraju001
arunraju001 requested a review from a team as a code owner July 30, 2026 05:29

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 appears to add temporary debug instrumentation to the WanManager process startup path (in main()), including extra trace logs and a runtime “switch” based on a file in /tmp.

Changes:

  • Added a new include (wanmgr_utils.h) to wanmgr_main.c.
  • Added always-enabled debug logging and a /tmp/okfile.txt existence check in main().

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

Comment on lines +286 to +309
CcspTraceInfo(("2222222222222222222222222222222222222222\n"));

#if 1
char checkfile[]="/tmp/okfile.txt";
if(access(checkfile, F_OK) == 0)
{
//WOW factor-start
CcspTraceError(("ZARUNLOG: TraceZZZZZZZZZZZZZZZZZZ: %s %d \n", __FUNCTION__, __LINE__));
CcspTraceError(("ZARUNLOG: TraceLOGZZZZZZZZZZZZZZZ: %s %d \n", __FUNCTION__, __LINE__));
#if 0
CcspTraceError(("ZARUNLOG: TraceLOG securSYS default dev eth0: %s %d \n", __FUNCTION__, __LINE__));
v_secure_system("ip -6 route del default dev eth0");
CcspTraceError(("ZARUNLOG: TraceLOG securSYS scope flush eth0: %s %d \n", __FUNCTION__, __LINE__));
v_secure_system("ip -6 addr flush scope global dev eth0");
CcspTraceError(("ZARUNLOG: TraceLOG BLOCKING default dev eth0: %s %d \n", __FUNCTION__, __LINE__));
util_runCommandInShellBlocking("ip -6 route del default dev eth0");//,"ip -6 route del default dev eth0");
CcspTraceError(("ZARUNLOG: TraceLOG BLOCKING scope eth0: %s %d \n", __FUNCTION__, __LINE__));
util_runCommandInShellBlocking("ip -6 addr flush scope global dev eth0");//,"ip -6 addr flush scope global dev eth0");
#endif
}
else{
CcspTraceError(("YARUNLOG: TraceLOG: %s %d \n", __FUNCTION__, __LINE__));
}
#endif
#include <telemetry_busmessage_sender.h>
#endif

#include "wanmgr_utils.h"
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.

2 participants