Skip to content

LTE-2904: Set ipv4_br-home_ipaddr sysevent#333

Open
rajkamal-cv wants to merge 3 commits into
support/2026q2from
lte_2904_stbl
Open

LTE-2904: Set ipv4_br-home_ipaddr sysevent#333
rajkamal-cv wants to merge 3 commits into
support/2026q2from
lte_2904_stbl

Conversation

@rajkamal-cv

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 2, 2026 11:48
@rajkamal-cv rajkamal-cv requested review from a team as code owners June 2, 2026 11:48

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 updates the sshd (dropbear) startup logic for the WNXL11BWL platform to better handle delayed IPv4 assignment (notably in Extender mode) and to react to the ipv4_br-home_ipaddr sysevent.

Changes:

  • Add a helper to wait (up to 300s) for an IPv4 address on a given interface before adding it as a dropbear listen address.
  • Update WNXL11BWL dropbear listen address construction (wwan0 v4/v6 + optional non-wwan interface v4) and add handlers for ipv4_br-home_ipaddr (restart in Extender mode) and mesh_wan_linkstatus.
  • Register the ipv4_br-home_ipaddr sysevent with the sshd service manager for _WNXL11BWL_PRODUCT_REQ_.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
source/scripts/init/service.d/service_sshd.sh Adds interface-IP wait helper, extends WNXL11BWL listen/restart behavior, and adds new event cases.
source/scripts/init/c_registration/15_ssh_server.c Registers ipv4_br-home_ipaddr as a custom event for the sshd service on WNXL11BWL builds.

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

Comment on lines +233 to +234
BRHOME_IP=`sysevent get ipv4_br-home_ipaddr`
echo_t "BRHOME_IP = $BRHOME_IP"
Comment on lines +492 to +495
echo_t "commented out intentionall"
#service_stop
#service_start
fi

*)
echo "Usage: $SELF_NAME [${SERVICE_NAME}-start|${SERVICE_NAME}-stop|${SERVICE_NAME}-restart|ssh_server_restart|lan-status|wan-status]" >&2
echo "Usage: $SELF_NAME [${SERVICE_NAME}-start|${SERVICE_NAME}-stop|${SERVICE_NAME}-restart|wan-status|bridge-status|current_wan_ifname|mesh_wan_linkstatus <status>]" >&2
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Copilot AI review requested due to automatic review settings June 10, 2026 08:51

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

Comment on lines +137 to +141
# wait_for_iface_ip <interface>
# Blocks up to 300 seconds (150 x 2s) waiting for an IPv4 address on the
# given interface. Prints the IP to stdout on success; logs an error and
# returns 1 on timeout.
wait_for_iface_ip() {
Comment on lines +478 to +483
mesh_wan_linkstatus)
if [ "$BOX_TYPE" = "WNXL11BWL" ] && [ "$2" = "up" ]; then
DEVICE_MODE=`deviceinfo.sh -mode`
if [ "$DEVICE_MODE" = "Extender" ]; then
echo_t "commented out intentionall"
#service_stop
if [ "$BOX_TYPE" = "WNXL11BWL" ] && [ "$2" = "up" ]; then
DEVICE_MODE=`deviceinfo.sh -mode`
if [ "$DEVICE_MODE" = "Extender" ]; then
echo_t "commented out intentionall"
Comment on lines +232 to +234
if [ "$CMINTERFACE" = "br-home" ]; then
CM_IP=`sysevent get ipv4_br-home_dhcp_ipaddr`
echo_t "[utopia] ipv4_br-home_dhcp_ipaddr = $CM_IP"
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