[PR #4636] [CLOSED] [client] Extend Darwin network monitoring with wakeup detection #20854

Open
opened 2026-08-05 05:07:46 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/4636
Author: @pappz
Created: 10/14/2025
Status: Closed

Base: mainHead: feature/detect-mac-wakeup


📝 Commits (10+)

  • b1ebac7 Extend Darwin network monitoring with wakeup detection
  • 885b5c6 Update client/internal/networkmonitor/monitor.go
  • bfa776c Update client/internal/networkmonitor/check_change_darwin.go
  • 158f3ac Handle better sleep period
  • 14fe7c2 Change log levels
  • 11ba253 Merge branch 'main' into feature/detect-mac-wakeup
  • bb46e43 Add gw change polling and time drift detection (informational only)
  • a75dde3 Fix happy eyeballs for grpc
  • fc15625 Clean up failed conn hooks
  • bf0698e Clean up bsd routes independently of the state file

📊 Changes

18 files changed (+586 additions, -76 deletions)

View changed files

📝 client/grpc/dialer.go (+35 -7)
📝 client/grpc/dialer_generic.go (+1 -2)
📝 client/internal/connect.go (+14 -18)
📝 client/internal/dns/server.go (+6 -3)
📝 client/internal/engine.go (+63 -17)
📝 client/internal/netflow/manager.go (+13 -4)
📝 client/internal/networkmonitor/check_change_bsd.go (+1 -1)
client/internal/networkmonitor/check_change_darwin.go (+344 -0)
📝 client/internal/networkmonitor/monitor.go (+1 -0)
📝 client/internal/peer/guard/sr_watcher.go (+14 -8)
📝 client/internal/routemanager/manager.go (+12 -2)
📝 client/internal/routemanager/systemops/systemops_unix.go (+69 -1)
📝 client/net/conn.go (+7 -5)
📝 client/net/dial.go (+0 -1)
📝 client/net/dialer_dial.go (+2 -1)
📝 client/net/listener_listen.go (+2 -2)
📝 shared/management/client/grpc.go (+1 -2)
📝 shared/signal/client/grpc.go (+1 -2)

📄 Description

Describe your changes

Stack

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

Documentation

Select exactly one:

  • I added/updated documentation for this change
  • Documentation is not needed for this change (explain why)

Docs PR URL (required if "docs added" is checked)

Paste the PR link from https://github.com/netbirdio/docs here:

https://github.com/netbirdio/docs/pull/__


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/4636 **Author:** [@pappz](https://github.com/pappz) **Created:** 10/14/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/detect-mac-wakeup` --- ### 📝 Commits (10+) - [`b1ebac7`](https://github.com/netbirdio/netbird/commit/b1ebac795da8568810c8248706b2e78828a1917f) Extend Darwin network monitoring with wakeup detection - [`885b5c6`](https://github.com/netbirdio/netbird/commit/885b5c68ad2d647855e4ddb112f78b46ece43281) Update client/internal/networkmonitor/monitor.go - [`bfa776c`](https://github.com/netbirdio/netbird/commit/bfa776c155575fdead60b9e311577bc21ae61dcf) Update client/internal/networkmonitor/check_change_darwin.go - [`158f3ac`](https://github.com/netbirdio/netbird/commit/158f3aceff66d0bbfc207bcd5506a605f592078a) Handle better sleep period - [`14fe7c2`](https://github.com/netbirdio/netbird/commit/14fe7c29cb4a0004aee55b09b1f729af6a548c92) Change log levels - [`11ba253`](https://github.com/netbirdio/netbird/commit/11ba253ffb66b5a8534bf925c85d6eadb3e96948) Merge branch 'main' into feature/detect-mac-wakeup - [`bb46e43`](https://github.com/netbirdio/netbird/commit/bb46e438aab0b4059a6da8dcb5c63eb91ce7c548) Add gw change polling and time drift detection (informational only) - [`a75dde3`](https://github.com/netbirdio/netbird/commit/a75dde33b967cdc292e13274f0aaee5fc2a60593) Fix happy eyeballs for grpc - [`fc15625`](https://github.com/netbirdio/netbird/commit/fc156259630ad0a9e81bebb83c17713a5d45acd5) Clean up failed conn hooks - [`bf0698e`](https://github.com/netbirdio/netbird/commit/bf0698e5aada3d8865b813ba4330965b2dc44d3a) Clean up bsd routes independently of the state file ### 📊 Changes **18 files changed** (+586 additions, -76 deletions) <details> <summary>View changed files</summary> 📝 `client/grpc/dialer.go` (+35 -7) 📝 `client/grpc/dialer_generic.go` (+1 -2) 📝 `client/internal/connect.go` (+14 -18) 📝 `client/internal/dns/server.go` (+6 -3) 📝 `client/internal/engine.go` (+63 -17) 📝 `client/internal/netflow/manager.go` (+13 -4) 📝 `client/internal/networkmonitor/check_change_bsd.go` (+1 -1) ➕ `client/internal/networkmonitor/check_change_darwin.go` (+344 -0) 📝 `client/internal/networkmonitor/monitor.go` (+1 -0) 📝 `client/internal/peer/guard/sr_watcher.go` (+14 -8) 📝 `client/internal/routemanager/manager.go` (+12 -2) 📝 `client/internal/routemanager/systemops/systemops_unix.go` (+69 -1) 📝 `client/net/conn.go` (+7 -5) 📝 `client/net/dial.go` (+0 -1) 📝 `client/net/dialer_dial.go` (+2 -1) 📝 `client/net/listener_listen.go` (+2 -2) 📝 `shared/management/client/grpc.go` (+1 -2) 📝 `shared/signal/client/grpc.go` (+1 -2) </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link ## Stack <!-- branch-stack --> ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) > By submitting this pull request, you confirm that you have read and agree to the terms of the [Contributor License Agreement](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT.md). ## Documentation Select exactly one: - [ ] I added/updated documentation for this change - [x] Documentation is **not needed** for this change (explain why) ### Docs PR URL (required if "docs added" is checked) Paste the PR link from https://github.com/netbirdio/docs here: https://github.com/netbirdio/docs/pull/__ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 05:07:46 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#20854