* 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>
21 lines
571 B
Go
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"`
|
|
}
|