Skip to content

TCXB8-3928 Observed SYS_SH_IPTableFW_restart marker during stability on TXB8 devices#276

Open
akuduv662 wants to merge 1 commit intodevelopfrom
topic/TCXB8_3928
Open

TCXB8-3928 Observed SYS_SH_IPTableFW_restart marker during stability on TXB8 devices#276
akuduv662 wants to merge 1 commit intodevelopfrom
topic/TCXB8_3928

Conversation

@akuduv662
Copy link
Copy Markdown

issue : iptable rule impacted minimally .Still It recovers post this selfheal action of restart.
rca : suspect like missing validation for natip4 NULL/empty before fprintf to prevent segmentation fault and invalid SNAT rule generation.
fix : Added missing natip4 NULL/empty check before fprintf to prevent segmentation fault and invalid SNAT rule generation.

Copilot AI review requested due to automatic review settings March 23, 2026 11:20
@akuduv662 akuduv662 requested review from a team as code owners March 23, 2026 11:20
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 PR prevents generating an invalid IPv4 SNAT rule in do_wan_nat_lan_clients() when natip4 is empty, addressing stability issues observed on TXB8 devices (iptables self-heal triggering on restart).

Changes:

  • Added IS_EMPTY_STRING(natip4) guard before emitting SNAT --to-source %s rules in two do_wan_nat_lan_clients() branches.
  • Added debug logging when natip4 is empty and the SNAT rule is skipped.

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

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