Files
Reims-Go/internal/packetbridge/adapters.go
T
ssdsl0126androot d0511e58db fix(network): 修复 Hyper-V 外部交换机绑定后的 Npcap 桥接 (#126)
* fix(network): resolve Hyper-V switch uplinks through interface stacks

* test: extend package timeout for expanded Guest Tools coverage

---------

Co-authored-by: root <root@localhost>
2026-12-03 21:54:41 +08:00

21 lines
571 B
Go

package packetbridge
import "net"
// adapterInterface 保留物理出口选择,并携带实际承载 IP 的捕获接口。
type adapterInterface struct {
*net.Interface
captureGUID string
}
// Adapter 是可供 Npcap 使用的物理出口,只读枚举不会更改宿主网络配置。
type Adapter struct {
Index int `json:"index"`
GUID string `json:"guid"`
Name string `json:"name"`
Description string `json:"description"`
Status string `json:"status"`
Speed string `json:"speed"`
Wireless bool `json:"wireless"`
}