[PR #2450] [MERGED] Replace windows network monitor implementation #15171

Closed
opened 2026-08-05 03:07:06 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2450
Author: @lixmal
Created: 8/19/2024
Status: Merged
Merged: 8/20/2024
Merged by: @lixmal

Base: mainHead: network-monitor-windows


📝 Commits (3)

  • 7479d33 Replace windows network monitor implementation
  • f60c8c1 Fix missing IPv6 zone
  • 29779b8 Restrict new routes to different next hop

📊 Changes

4 files changed (+336 additions, -267 deletions)

View changed files

📝 client/internal/networkmonitor/monitor_bsd.go (+1 -1)
📝 client/internal/networkmonitor/monitor_generic.go (+1 -1)
📝 client/internal/networkmonitor/monitor_windows.go (+36 -215)
📝 client/internal/routemanager/systemops/systemops_windows.go (+298 -50)

📄 Description

This new one uses functions from netioapi.h to monitor route changes. This change ensures that we include routes that point to virtual interfaces, such as vEthernet created by the Hyper-V Virtual Switch.

Describe your changes

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)
  • Extended the README / documentation, if necessary

🔄 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/2450 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 8/19/2024 **Status:** ✅ Merged **Merged:** 8/20/2024 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `main` ← **Head:** `network-monitor-windows` --- ### 📝 Commits (3) - [`7479d33`](https://github.com/netbirdio/netbird/commit/7479d33f74d864353543b2a0579b9ed09c1180a2) Replace windows network monitor implementation - [`f60c8c1`](https://github.com/netbirdio/netbird/commit/f60c8c11411616a498fdb75869314df981a5ee32) Fix missing IPv6 zone - [`29779b8`](https://github.com/netbirdio/netbird/commit/29779b81db27753144221463a388472d2b113d40) Restrict new routes to different next hop ### 📊 Changes **4 files changed** (+336 additions, -267 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/networkmonitor/monitor_bsd.go` (+1 -1) 📝 `client/internal/networkmonitor/monitor_generic.go` (+1 -1) 📝 `client/internal/networkmonitor/monitor_windows.go` (+36 -215) 📝 `client/internal/routemanager/systemops/systemops_windows.go` (+298 -50) </details> ### 📄 Description This new one uses functions from netioapi.h to monitor route changes. This change ensures that we include routes that point to virtual interfaces, such as vEthernet created by the Hyper-V Virtual Switch. ## Describe your changes ## Issue ticket number and link ### Checklist - [x] 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) - [ ] Extended the README / documentation, if necessary --- <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 03:07:06 -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#15171