[PR #314] [CLOSED] qga: implement guest-network-get-route for Windows #434

Open
opened 2026-01-31 21:31:15 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/qemu/qemu/pull/314
Author: @elizashurov
Created: 12/22/2025
Status: Closed

Base: masterHead: qga-win32-guestnetworkroute


📝 Commits (1)

  • 5663937 qga: implement guest-network-get-route for Windows

📊 Changes

2 files changed (+178 additions, -5 deletions)

View changed files

📝 qga/commands-win32.c (+172 -0)
📝 qga/qapi-schema.json (+6 -5)

📄 Description

Add Windows implementation of guest-network-get-route command to provide network routing information on Windows guests.

Features implemented:

  • IPv4 and IPv6 route information retrieval using GetIpForwardTable2
  • Human-readable interface names via GetAdaptersAddresses
  • Proper route metrics combining route and interface metrics
  • MTU information for network interfaces
  • Support for destination, gateway, mask, and metric fields for IPv4
  • Support for destination, nexthop, and desprefixlen fields for IPv6

Implementation uses modern Windows IP Helper API (GetIpForwardTable2, GetIfEntry2).


🔄 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/qemu/qemu/pull/314 **Author:** [@elizashurov](https://github.com/elizashurov) **Created:** 12/22/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `qga-win32-guestnetworkroute` --- ### 📝 Commits (1) - [`5663937`](https://github.com/qemu/qemu/commit/5663937be088210949d87fa9bab794df3b3dbc91) qga: implement guest-network-get-route for Windows ### 📊 Changes **2 files changed** (+178 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `qga/commands-win32.c` (+172 -0) 📝 `qga/qapi-schema.json` (+6 -5) </details> ### 📄 Description Add Windows implementation of guest-network-get-route command to provide network routing information on Windows guests. Features implemented: - IPv4 and IPv6 route information retrieval using GetIpForwardTable2 - Human-readable interface names via GetAdaptersAddresses - Proper route metrics combining route and interface metrics - MTU information for network interfaces - Support for destination, gateway, mask, and metric fields for IPv4 - Support for destination, nexthop, and desprefixlen fields for IPv6 Implementation uses modern Windows IP Helper API (GetIpForwardTable2, GetIfEntry2). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 21:31:15 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/qemu#434