Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 464 for addrI (0.04 sec)

  1. src/runtime/pprof/protomem_test.go

    	"testing"
    )
    
    func TestConvertMemProfile(t *testing.T) {
    	addr1, addr2, map1, map2 := testPCs(t)
    
    	// MemProfileRecord stacks are return PCs, so add one to the
    	// addresses recorded in the "profile". The proto profile
    	// locations are call PCs, so conversion will subtract one
    	// from these and get back to addr1 and addr2.
    	a1, a2 := uintptr(addr1)+1, uintptr(addr2)+1
    	rate := int64(512 * 1024)
    	rec := []profilerecord.MemProfileRecord{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. pilot/pkg/util/network/ip_test.go

    	tests := []struct {
    		name     string
    		addrs    []string
    		expected bool
    	}{
    		{
    			name:     "ipv4 only",
    			addrs:    []string{"1.1.1.1", "127.0.0.1", "2.2.2.2"},
    			expected: false,
    		},
    		{
    			name:     "ipv6 only",
    			addrs:    []string{"1111:2222::1", "::1", "2222:3333::1"},
    			expected: true,
    		},
    		{
    			name:     "mixed ipv4 and ipv6",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 08 16:24:15 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  3. src/cmd/internal/objfile/pe.go

    			case ch&bss != 0:
    				sym.Code = 'B'
    			}
    			sym.Addr += imageBase + uint64(sect.VirtualAddress)
    		}
    		syms = append(syms, sym)
    		addrs = append(addrs, sym.Addr)
    	}
    
    	sort.Sort(uint64s(addrs))
    	for i := range syms {
    		j := sort.Search(len(addrs), func(x int) bool { return addrs[x] > syms[i].Addr })
    		if j < len(addrs) {
    			syms[i].Size = int64(addrs[j] - syms[i].Addr)
    		}
    	}
    
    	return syms, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 20 00:56:30 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  4. pkg/test/framework/components/istio/ingress.go

    			addrs = append(addrs, v.Addr().String())
    			ports = append(ports, int(v.Port()))
    		}
    	}
    	if len(addrs) > 0 {
    		return addrs, ports, nil
    	}
    
    	return nil, nil, fmt.Errorf("failed to get address for port %v", port)
    }
    
    // AddressForPort returns the externally reachable host and port of the component for the given port.
    func (c *ingressImpl) AddressesForPort(port int) ([]string, []int) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 17:13:34 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. internal/http/listener.go

    	}
    
    	addr = tcpAddr
    	return addr
    }
    
    // Addrs - returns all address information of TCP listeners.
    func (listener *httpListener) Addrs() (addrs []net.Addr) {
    	for i := range listener.listeners {
    		addrs = append(addrs, listener.listeners[i].Addr())
    	}
    
    	return addrs
    }
    
    // TCPOptions specify customizable TCP optimizations on raw socket
    type TCPOptions struct {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. src/cmd/internal/objfile/macho.go

    		}
    		sym := Sym{Name: s.Name, Addr: s.Value, Code: '?'}
    		i := sort.Search(len(addrs), func(x int) bool { return addrs[x] > s.Value })
    		if i < len(addrs) {
    			sym.Size = int64(addrs[i] - s.Value)
    		}
    		if s.Sect == 0 {
    			sym.Code = 'U'
    		} else if int(s.Sect) <= len(f.macho.Sections) {
    			sect := f.macho.Sections[s.Sect-1]
    			switch sect.Seg {
    			case "__TEXT", "__DATA_CONST":
    				sym.Code = 'R'
    			case "__DATA":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:59 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. cmd/net_test.go

    			}
    		}
    	}
    }
    
    func TestSameLocalAddrs(t *testing.T) {
    	testCases := []struct {
    		addr1       string
    		addr2       string
    		sameAddr    bool
    		expectedErr error
    	}{
    		{"", "", false, errors.New("unable to process empty address")},
    		{":9000", ":9000", true, nil},
    		{"localhost:9000", ":9000", true, nil},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 19 08:43:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. src/net/addrselect.go

    	"net/netip"
    	"sort"
    )
    
    func sortByRFC6724(addrs []IPAddr) {
    	if len(addrs) < 2 {
    		return
    	}
    	sortByRFC6724withSrcs(addrs, srcAddrs(addrs))
    }
    
    func sortByRFC6724withSrcs(addrs []IPAddr, srcs []netip.Addr) {
    	if len(addrs) != len(srcs) {
    		panic("internal error")
    	}
    	addrAttr := make([]ipAttr, len(addrs))
    	srcAttr := make([]ipAttr, len(srcs))
    	for i, v := range addrs {
    		addrAttrIP, _ := netip.AddrFromSlice(v.IP)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 00:24:06 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  9. src/net/interface_bsd.go

    				continue
    			}
    			ift[n].Index = m.Index
    			ift[n].Name = m.Name
    			ift[n].Flags = linkFlags(m.Flags)
    			if sa, ok := m.Addrs[syscall.RTAX_IFP].(*route.LinkAddr); ok && len(sa.Addr) > 0 {
    				ift[n].HardwareAddr = make([]byte, len(sa.Addr))
    				copy(ift[n].HardwareAddr, sa.Addr)
    			}
    			for _, sys := range m.Sys() {
    				if imx, ok := sys.(*route.InterfaceMetrics); ok {
    					ift[n].MTU = imx.MTU
    					break
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 27 05:42:03 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  10. src/net/external_test.go

    		addr, err := ResolveTCPAddr(network, "www.google.com:http")
    		if err != nil {
    			t.Error(err)
    			continue
    		}
    		switch {
    		case network == "tcp" && addr.IP.To4() == nil:
    			fallthrough
    		case network == "tcp4" && addr.IP.To4() == nil:
    			t.Errorf("got %v; want an IPv4 address on %s", addr, network)
    		case network == "tcp6" && (addr.IP.To16() == nil || addr.IP.To4() != nil):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top