Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for FlagLoopback (0.1 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/net/interface.go

    	if intf.Flags&net.FlagUp != 0 {
    		klog.V(4).Infof("Interface %v is up", intf.Name)
    		return true
    	}
    	return false
    }
    
    func isLoopbackOrPointToPoint(intf *net.Interface) bool {
    	return intf.Flags&(net.FlagLoopback|net.FlagPointToPoint) != 0
    }
    
    // getMatchingGlobalIP returns the first valid global unicast address of the given
    // 'family' from the list of 'addrs'.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 07:07:03 UTC 2022
    - 14.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/net/interface_test.go

    `
    
    const (
    	flagUp       = net.FlagUp | net.FlagBroadcast | net.FlagMulticast
    	flagDown     = net.FlagBroadcast | net.FlagMulticast
    	flagLoopback = net.FlagUp | net.FlagLoopback
    	flagP2P      = net.FlagUp | net.FlagPointToPoint
    )
    
    func makeIntf(index int, name string, flags net.Flags) net.Interface {
    	mac := net.HardwareAddr{0, 0x32, 0x7d, 0x69, 0xf7, byte(0x30 + index)}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 10 07:29:34 UTC 2023
    - 33.2K bytes
    - Viewed (0)
  3. src/net/net_windows_test.go

    	checkGetmac(t)
    
    	ift, err := Interfaces()
    	if err != nil {
    		t.Fatal(err)
    	}
    	have := make(map[string]string)
    	for _, ifi := range ift {
    		if ifi.Flags&FlagLoopback != 0 {
    			// no MAC address for loopback interfaces
    			continue
    		}
    		have[ifi.Name] = ifi.HardwareAddr.String()
    	}
    
    	out, err := runCmd("getmac", "/fo", "list", "/v")
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
Back to top