Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for FlagLoopback (0.37 sec)

  1. src/vendor/golang.org/x/net/nettest/nettest.go

    // for loopback test.
    func LoopbackInterface() (*net.Interface, error) {
    	ift, err := net.Interfaces()
    	if err != nil {
    		return nil, errNoAvailableInterface
    	}
    	for _, ifi := range ift {
    		if ifi.Flags&net.FlagLoopback != 0 && ifi.Flags&net.FlagUp != 0 {
    			return &ifi, nil
    		}
    	}
    	return nil, errNoAvailableInterface
    }
    
    // RoutedInterface returns a network interface that can route IP
    // traffic and satisfies flags.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 8.5K 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)
  4. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"ErrWriteToConnected", Var, 0},
    		{"Error", Type, 0},
    		{"FileConn", Func, 0},
    		{"FileListener", Func, 0},
    		{"FilePacketConn", Func, 0},
    		{"FlagBroadcast", Const, 0},
    		{"FlagLoopback", Const, 0},
    		{"FlagMulticast", Const, 0},
    		{"FlagPointToPoint", Const, 0},
    		{"FlagRunning", Const, 20},
    		{"FlagUp", Const, 0},
    		{"Flags", Type, 0},
    		{"HardwareAddr", Type, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  5. api/go1.txt

    pkg mime/multipart, type Part struct, Header textproto.MIMEHeader
    pkg mime/multipart, type Reader struct
    pkg mime/multipart, type Writer struct
    pkg net, const FlagBroadcast Flags
    pkg net, const FlagLoopback Flags
    pkg net, const FlagMulticast Flags
    pkg net, const FlagPointToPoint Flags
    pkg net, const FlagUp Flags
    pkg net, const IPv4len ideal-int
    pkg net, const IPv6len ideal-int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
  6. api/go1.1.txt

    pkg math/big, method (*Rat) Float64() (float64, bool)
    pkg math/big, method (*Rat) SetFloat64(float64) *Rat
    pkg mime/multipart, method (*Writer) SetBoundary(string) error
    pkg net, const FlagBroadcast = 2
    pkg net, const FlagLoopback = 4
    pkg net, const FlagMulticast = 16
    pkg net, const FlagPointToPoint = 8
    pkg net, const FlagUp = 1
    pkg net, const IPv4len = 4
    pkg net, const IPv6len = 16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 31 20:37:15 UTC 2022
    - 2.6M bytes
    - Viewed (0)
Back to top