-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtypes.go
84 lines (79 loc) · 2.67 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
package winroute
type IPForwardRow struct {
ForwardDest uint32
ForwardMask uint32
ForwardPolicy uint32
ForwardNextHop uint32
ForwardIfIndex uint32
ForwardType uint32
ForwardProto uint32
ForwardAge uint32
ForwardNextHopAS uint32
ForwardMetric1 uint32
ForwardMetric2 uint32
ForwardMetric3 uint32
ForwardMetric4 uint32
ForwardMetric5 uint32
}
func (t IPForwardRow) Equals(o IPForwardRow) bool {
return t.ForwardDest == o.ForwardDest &&
t.ForwardMask == o.ForwardMask &&
t.ForwardNextHop == o.ForwardNextHop &&
t.ForwardIfIndex == o.ForwardIfIndex &&
t.ForwardType == o.ForwardType &&
t.ForwardProto == o.ForwardProto &&
t.ForwardMetric1 == o.ForwardMetric1
}
type IPInterfaceEntry struct {
Family uint32
InterfaceLuid uint64
InterfaceIndex uint32
MaxReassemblySize uint32
InterfaceIdentifier uint64
MinRouterAdvertisementInterval uint32
MaxRouterAdvertisementInterval uint32
AdvertisingEnabled bool
ForwardingEnabled bool
WeakHostSend bool
WeakHostReceive bool
UseAutomaticMetric bool
UseNeighborUnreachabilityDetection bool
ManagedAddressConfigurationSupported bool
OtherStatefulConfigurationSupported bool
AdvertiseDefaultRoute bool
RouterDiscoveryBehavior uint32
DadTransmits uint32
BaseReachableTime uint32
RetransmitTime uint32
PathMtuDiscoveryTimeout uint32
LinkLocalAddressBehavior uint32
LinkLocalAddressTimeout uint32
ZoneIndices [16]uint32
SitePrefixLength uint32
Metric uint32
NlMtu uint32
Connected bool
SupportsWakeUpPatterns bool
SupportsNeighborDiscovery bool
SupportsRouterDiscovery bool
ReachableTime uint32
TransmitOffload InterfaceOffloadRod
ReceiveOffload InterfaceOffloadRod
DisableDefaultRoutes bool
}
type InterfaceOffloadRod struct {
ChecksumSupported bool
OptionsSupported bool
DatagramChecksumSupported bool
StreamChecksumSupported bool
StreamOptionsSupported bool
StreamFastPathCompatible bool
DatagramFastPathCompatible bool
LargeSendOffloadSupported bool
GiantSendOffloadSupported bool
}
type SliceHeader struct {
Addr uintptr
Len int
Cap int
}