Skip to content

XER10-3108 , SHARMAN-4211, SHARMAN-4218, XER10-3122 : Restart SSH after lease change.#217

Merged
S-Parthiban-Selvaraj merged 6 commits into
mainfrom
bugfix/XER10-3108-ssh-restart
Jul 14, 2026
Merged

XER10-3108 , SHARMAN-4211, SHARMAN-4218, XER10-3122 : Restart SSH after lease change.#217
S-Parthiban-Selvaraj merged 6 commits into
mainfrom
bugfix/XER10-3108-ssh-restart

Conversation

@S-Parthiban-Selvaraj

Copy link
Copy Markdown
Contributor

Restart WAN management services on IPv4 and IPv6 setup to ensure proper binding of management services to the new WAN addresses.

Restart WAN management services on IPv4 and IPv6 setup to ensure proper binding of management services to the new WAN addresses.
@S-Parthiban-Selvaraj S-Parthiban-Selvaraj requested a review from a team as a code owner July 10, 2026 10:29
Copilot AI review requested due to automatic review settings July 10, 2026 10: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

Restarting WAN management services during IPv4/IPv6 setup so services like sshd can re-bind to updated WAN addresses after bring-up or lease/address changes.

Changes:

  • Move wanmgr_services_restart() out of the “first-time started” block for IPv4 so it runs on lease/address changes as well.
  • Move wanmgr_services_restart() out of the “first-time started” block for IPv6 so it runs on lease/address changes as well.

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

Comment thread source/WanManager/wanmgr_interface_sm.c
Comment thread source/WanManager/wanmgr_interface_sm.c
Copilot AI review requested due to automatic review settings July 10, 2026 11:02

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 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread source/WanManager/wanmgr_dhcpv6_apis.c
Copilot AI review requested due to automatic review settings July 10, 2026 11:11

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 4 out of 4 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

source/WanManager/wanmgr_dhcpv6_apis.c:1793

  • strncpy is using the full destination buffer size, which can leave Ipv6DataNew.address unterminated when the source is exactly BUFLEN_48 bytes. This can lead to over-reads when the address is later logged/used in command strings.
        CcspTraceWarning(("%s %d IANA is not assigned in this IPC msg, but we have IANA configured from previous lease. Assuming only IAPD renewed. \n", __FUNCTION__, __LINE__));
        strncpy(Ipv6DataNew.address, pDhcp6cInfoCur->address, sizeof(Ipv6DataNew.address));
        Ipv6DataNew.addrAssigned = true;

Comment thread source/WanManager/wanmgr_interface_sm.c
Comment thread source/WanManager/wanmgr_interface_sm.c
@S-Parthiban-Selvaraj S-Parthiban-Selvaraj changed the title XER10-3108 : Restart SSH after lease change. XER10-3108 , SHARMAN-4211, SHARMAN-4218, XER10-3122 : Restart SSH after lease change. Jul 10, 2026
Copilot AI review requested due to automatic review settings July 10, 2026 12:32

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 4 out of 4 changed files in this pull request and generated 3 comments.

Comment thread source/WanManager/wanmgr_interface_sm.c
Comment thread source/WanManager/wanmgr_interface_sm.c
Comment thread source/WanManager/wanmgr_dhcpv6_apis.c
Copilot AI review requested due to automatic review settings July 10, 2026 16:30

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 4 out of 4 changed files in this pull request and generated 3 comments.

Comment thread source/WanManager/wanmgr_interface_sm.c
Comment thread source/WanManager/wanmgr_interface_sm.c
Comment thread source/WanManager/wanmgr_dhcpv6_apis.c
@S-Parthiban-Selvaraj S-Parthiban-Selvaraj merged commit 9518109 into main Jul 14, 2026
7 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants