Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for adapterAddresses (0.33 sec)

  1. src/net/interface_windows.go

    package net
    
    import (
    	"internal/syscall/windows"
    	"os"
    	"syscall"
    	"unsafe"
    )
    
    // adapterAddresses returns a list of IP adapter and address
    // structures. The structure contains an IP adapter and flattened
    // multiple IP addresses including unicast, anycast and multicast
    // addresses.
    func adapterAddresses() ([]*windows.IpAdapterAddresses, error) {
    	var b []byte
    	l := uint32(15000) // recommended initial size
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 10:25:02 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. src/net/dnsconfig_windows.go

    	conf = &dnsConfig{
    		ndots:    1,
    		timeout:  5 * time.Second,
    		attempts: 2,
    	}
    	defer func() {
    		if len(conf.servers) == 0 {
    			conf.servers = defaultNS
    		}
    	}()
    	aas, err := adapterAddresses()
    	if err != nil {
    		return
    	}
    
    	for _, aa := range aas {
    		// Only take interfaces whose OperStatus is IfOperStatusUp(0x01) into DNS configs.
    		if aa.OperStatus != windows.IfOperStatusUp {
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 10:25:02 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top