aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tunnel/winipcfg/zwinipcfg_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'tunnel/winipcfg/zwinipcfg_windows.go')
-rw-r--r--tunnel/winipcfg/zwinipcfg_windows.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/tunnel/winipcfg/zwinipcfg_windows.go b/tunnel/winipcfg/zwinipcfg_windows.go
index b08f887f..8f37ac26 100644
--- a/tunnel/winipcfg/zwinipcfg_windows.go
+++ b/tunnel/winipcfg/zwinipcfg_windows.go
@@ -40,7 +40,6 @@ var (
modiphlpapi = windows.NewLazySystemDLL("iphlpapi.dll")
procFreeMibTable = modiphlpapi.NewProc("FreeMibTable")
- procGetAdaptersAddresses = modiphlpapi.NewProc("GetAdaptersAddresses")
procInitializeIpInterfaceEntry = modiphlpapi.NewProc("InitializeIpInterfaceEntry")
procGetIpInterfaceTable = modiphlpapi.NewProc("GetIpInterfaceTable")
procGetIpInterfaceEntry = modiphlpapi.NewProc("GetIpInterfaceEntry")
@@ -76,14 +75,6 @@ func freeMibTable(memory unsafe.Pointer) {
return
}
-func getAdaptersAddresses(family uint32, flags GAAFlags, reserved uintptr, adapterAddresses *IPAdapterAddresses, sizePointer *uint32) (ret error) {
- r0, _, _ := syscall.Syscall6(procGetAdaptersAddresses.Addr(), 5, uintptr(family), uintptr(flags), uintptr(reserved), uintptr(unsafe.Pointer(adapterAddresses)), uintptr(unsafe.Pointer(sizePointer)), 0)
- if r0 != 0 {
- ret = syscall.Errno(r0)
- }
- return
-}
-
func initializeIPInterfaceEntry(row *MibIPInterfaceRow) {
syscall.Syscall(procInitializeIpInterfaceEntry.Addr(), 1, uintptr(unsafe.Pointer(row)), 0, 0)
return