@@ -96,7 +96,7 @@ const (
96
96
type mibIfRow2 struct {
97
97
InterfaceLuid uint64
98
98
InterfaceIndex uint32
99
- InterfaceGuid guid
99
+ InterfaceGuid guid //nolint:revive //FIXME
100
100
Alias [maxStringSize + 1 ]uint16
101
101
Description [maxStringSize + 1 ]uint16
102
102
PhysicalAddressLength uint32
@@ -113,7 +113,7 @@ type mibIfRow2 struct {
113
113
OperStatus uint32
114
114
AdminStatus uint32
115
115
MediaConnectState uint32
116
- NetworkGuid guid
116
+ NetworkGuid guid //nolint:revive //FIXME
117
117
ConnectionType uint32
118
118
padding1 [pad0for64_4for32 ]byte
119
119
TransmitLinkSpeed uint64
@@ -383,7 +383,7 @@ func getTCPConnections(family uint32) ([]ConnectionStat, error) {
383
383
}
384
384
}
385
385
386
- err := getExtendedTcpTable (p ,
386
+ err := getExtendedTCPTable (p ,
387
387
& size ,
388
388
true ,
389
389
family ,
@@ -464,7 +464,7 @@ func getUDPConnections(family uint32) ([]ConnectionStat, error) {
464
464
}
465
465
}
466
466
467
- err := getExtendedUdpTable (
467
+ err := getExtendedUDPTable (
468
468
p ,
469
469
& size ,
470
470
true ,
@@ -528,16 +528,16 @@ var tcpStatuses = map[mibTCPState]string{
528
528
12 : "DELETE" ,
529
529
}
530
530
531
- func getExtendedTcpTable ( pTcpTable uintptr , pdwSize * uint32 , bOrder bool , ulAf uint32 , tableClass tcpTableClass , reserved uint32 ) (errcode error ) {
532
- r1 , _ , _ := syscall .Syscall6 (procGetExtendedTCPTable .Addr (), 6 , pTcpTable , uintptr (unsafe .Pointer (pdwSize )), getUintptrFromBool (bOrder ), uintptr (ulAf ), uintptr (tableClass ), uintptr (reserved ))
531
+ func getExtendedTCPTable ( pTCPTable uintptr , pdwSize * uint32 , bOrder bool , ulAf uint32 , tableClass tcpTableClass , reserved uint32 ) (errcode error ) {
532
+ r1 , _ , _ := syscall .Syscall6 (procGetExtendedTCPTable .Addr (), 6 , pTCPTable , uintptr (unsafe .Pointer (pdwSize )), getUintptrFromBool (bOrder ), uintptr (ulAf ), uintptr (tableClass ), uintptr (reserved ))
533
533
if r1 != 0 {
534
534
errcode = syscall .Errno (r1 )
535
535
}
536
536
return
537
537
}
538
538
539
- func getExtendedUdpTable ( pUdpTable uintptr , pdwSize * uint32 , bOrder bool , ulAf uint32 , tableClass udpTableClass , reserved uint32 ) (errcode error ) {
540
- r1 , _ , _ := syscall .Syscall6 (procGetExtendedUDPTable .Addr (), 6 , pUdpTable , uintptr (unsafe .Pointer (pdwSize )), getUintptrFromBool (bOrder ), uintptr (ulAf ), uintptr (tableClass ), uintptr (reserved ))
539
+ func getExtendedUDPTable ( pUDPTable uintptr , pdwSize * uint32 , bOrder bool , ulAf uint32 , tableClass udpTableClass , reserved uint32 ) (errcode error ) {
540
+ r1 , _ , _ := syscall .Syscall6 (procGetExtendedUDPTable .Addr (), 6 , pUDPTable , uintptr (unsafe .Pointer (pdwSize )), getUintptrFromBool (bOrder ), uintptr (ulAf ), uintptr (tableClass ), uintptr (reserved ))
541
541
if r1 != 0 {
542
542
errcode = syscall .Errno (r1 )
543
543
}
0 commit comments