Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for sigaddr (0.11 sec)

  1. src/net/lookup_test.go

    	return strings.HasSuffix(strings.ToLower(s), strings.ToLower(suffix))
    }
    
    func lookupLocalhost(ctx context.Context, fn func(context.Context, string, string) ([]IPAddr, error), network, host string) ([]IPAddr, error) {
    	switch host {
    	case "localhost":
    		return []IPAddr{
    			{IP: IPv4(127, 0, 0, 1)},
    			{IP: IPv6loopback},
    		}, nil
    	default:
    		return fn(ctx, network, host)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  2. pilot/cmd/pilot-agent/app/cmd.go

    			var ip net.IP
    			switch v := addr.(type) {
    			case *net.IPNet:
    				ip = v.IP
    			case *net.IPAddr:
    				ip = v.IP
    			default:
    				continue
    			}
    
    			// handling ipv4 wrapping in ipv6
    			ipAddr, okay := netip.AddrFromSlice(ip)
    			if !okay {
    				continue
    			}
    			unwrapAddr := ipAddr.Unmap()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  3. src/net/lookup_plan9.go

    		for _, a := range addrs {
    			if a == addr {
    				continue loop
    			}
    		}
    		addrs = append(addrs, addr)
    	}
    	return
    }
    
    func (r *Resolver) lookupIP(ctx context.Context, network, host string) (addrs []IPAddr, err error) {
    	if order, conf := systemConf().hostLookupOrder(r, host); order != hostLookupCgo {
    		return r.goLookupIP(ctx, network, host, order, conf)
    	}
    
    	lits, err := r.lookupHost(ctx, host)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:08:38 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  4. pkg/proxy/util/utils_test.go

    	}{
    		{
    			"Empty",
    			func(ip net.IP) bool { return false },
    			nil,
    			nil,
    		},
    		{
    			"Reject IPAddr x 2",
    			func(ip net.IP) bool { return false },
    			[]net.Addr{
    				mustParseIPAddr("8.8.8.8"),
    				mustParseIPAddr("1000::"),
    			},
    			nil,
    		},
    		{
    			"Accept IPAddr x 2",
    			func(ip net.IP) bool { return true },
    			[]net.Addr{
    				mustParseIPAddr("8.8.8.8"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  5. internal/http/listener_test.go

    		t.Fatalf("%s.  Unable to get IP addresses of this host.", err)
    	}
    
    	for _, addr := range addrs {
    		var ip net.IP
    		switch v := addr.(type) {
    		case *net.IPNet:
    			ip = v.IP
    		case *net.IPAddr:
    			ip = v.IP
    		}
    
    		if ip.To4() != nil {
    			localIP4.Add(ip.String())
    		}
    	}
    
    	// Filter ipList by IPs those do not start with '127.'.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. src/net/net_windows_test.go

    				}
    				if addr.IP.To16() != nil && addr.IP.To4() == nil {
    					// netsh does not output netmask for ipv6, so ignore ipv6 mask
    					have = append(have, addr.IP.String())
    				}
    			case *IPAddr:
    				if addr.IP.To4() != nil {
    					have = append(have, addr.String())
    				}
    				if addr.IP.To16() != nil && addr.IP.To4() == nil {
    					// netsh does not output netmask for ipv6, so ignore ipv6 mask
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  7. pkg/kubelet/kubelet_node_status.go

    	}
    
    	addrs, err := net.InterfaceAddrs()
    	if err != nil {
    		return err
    	}
    	for _, addr := range addrs {
    		var ip net.IP
    		switch v := addr.(type) {
    		case *net.IPNet:
    			ip = v.IP
    		case *net.IPAddr:
    			ip = v.IP
    		}
    		if ip != nil && ip.Equal(nodeIP) {
    			return nil
    		}
    	}
    	return fmt.Errorf("node IP: %q not found in the host's network interfaces", nodeIP.String())
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/macho.go

    				symtab.AddUint8(0)
    			} else {
    				symtab.AddUint8(uint8(ldr.SymSect(o).Extnum))
    			}
    			symtab.AddUint16(ctxt.Arch, 0) // desc
    			symtab.AddUintXX(ctxt.Arch, uint64(ldr.SymAddr(s)), ctxt.Arch.PtrSize)
    		}
    	}
    }
    
    func machodysymtab(ctxt *Link, base int64) {
    	ml := newMachoLoad(ctxt.Arch, LC_DYSYMTAB, 18)
    
    	n := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 43.9K bytes
    - Viewed (0)
  9. cmd/notification.go

    	addr := peerClient.host.String()
    	reqInfo := (&logger.ReqInfo{}).AppendTags("remotePeer", addr)
    	ctx := logger.SetReqInfo(GlobalContext, reqInfo)
    	peersLogOnceIf(ctx, err, "add-node-err-"+addr)
    	nodeInfo.SetAddr(addr)
    	nodeInfo.SetError(err.Error())
    }
    
    // GetSysErrors - Memory information
    func (sys *NotificationSys) GetSysErrors(ctx context.Context) []madmin.SysErrors {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 44.9K bytes
    - Viewed (0)
Back to top