Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 147 for onetmp (0.11 sec)

  1. api/go1.18.txt

    pkg net/netip, func AddrFromSlice([]uint8) (Addr, bool)
    pkg net/netip, func AddrPortFrom(Addr, uint16) AddrPort
    pkg net/netip, func IPv4Unspecified() Addr
    pkg net/netip, func IPv6LinkLocalAllNodes() Addr
    pkg net/netip, func IPv6Unspecified() Addr
    pkg net/netip, func MustParseAddr(string) Addr
    pkg net/netip, func MustParseAddrPort(string) AddrPort
    pkg net/netip, func MustParsePrefix(string) Prefix
    pkg net/netip, func ParseAddr(string) (Addr, error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 13K bytes
    - Viewed (0)
  2. pkg/util/net/ip_test.go

    			ipv4: func() []netip.Addr {
    				ip, _ := netip.ParseAddr("1.0.0.0")
    				ip2, _ := netip.ParseAddr("255.255.255.255")
    				return []netip.Addr{ip, ip2}
    			},
    			ipv6: func() []netip.Addr {
    				return []netip.Addr{}
    			},
    		},
    		{
    			name: "one ipv6",
    			ips:  []string{"::1"},
    			ipv4: func() []netip.Addr {
    				return []netip.Addr{}
    			},
    			ipv6: func() []netip.Addr {
    				ip, _ := netip.ParseAddr("::1")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 01 14:41:40 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. pkg/util/iptree/iptree.go

    func New[T any]() *Tree[T] {
    	return &Tree[T]{
    		rootV4: &node[T]{
    			prefix: netip.PrefixFrom(netip.IPv4Unspecified(), 0),
    		},
    		rootV6: &node[T]{
    			prefix: netip.PrefixFrom(netip.IPv6Unspecified(), 0),
    		},
    	}
    }
    
    // GetPrefix returns the stored value and true if the exact prefix exists in the tree.
    func (t *Tree[T]) GetPrefix(prefix netip.Prefix) (T, bool) {
    	var zeroT T
    
    	n := t.rootV4
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 17.7K bytes
    - Viewed (0)
  4. pkg/registry/core/service/ipallocator/ipallocator.go

    // It returns an invalid address to indicate it hasfinished.
    func ipIterator(first netip.Addr, last netip.Addr, offset uint64) func() netip.Addr {
    	// There are no modulo operations for IP addresses
    	modulo := func(addr netip.Addr) netip.Addr {
    		if addr.Compare(last) == 1 {
    			return first
    		}
    		return addr
    	}
    	next := func(addr netip.Addr) netip.Addr {
    		return modulo(addr.Next())
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 17K bytes
    - Viewed (0)
  5. pilot/pkg/util/network/ip.go

    func CheckIPFamilyTypeForFirstIPs(ipAddrs []string) (IPFamilyType, error) {
    	if len(ipAddrs) == 0 {
    		return UNKNOWN, errors.New("the ipAddr slice is empty")
    	}
    
    	netIP, err := netip.ParseAddr(ipAddrs[0])
    	if err != nil {
    		return UNKNOWN, err
    	}
    	if netIP.Is6() && !netIP.IsLinkLocalUnicast() {
    		return IPv6, nil
    	}
    	return IPv4, nil
    }
    
    // GlobalUnicastIP returns the first global unicast address in the passed in addresses.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 21 21:27:21 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  6. cni/pkg/ipset/ipset.go

    	flush(name string) error
    	clearEntriesWithComment(name string, comment string) error
    	clearEntriesWithIP(name string, ip netip.Addr) error
    	listEntriesByIP(name string) ([]netip.Addr, error)
    }
    
    // TODO this should actually create v6 and v6 subsets of type `hash:ip`, add them both to a
    // superset of type `list:set` - we can then query the superset directly in iptables (with the same rule),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 22:24:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. src/net/udpsock.go

    }
    
    // AddrPort returns the UDPAddr a as a netip.AddrPort.
    //
    // If a.Port does not fit in a uint16, it's silently truncated.
    //
    // If a is nil, a zero value is returned.
    func (a *UDPAddr) AddrPort() netip.AddrPort {
    	if a == nil {
    		return netip.AddrPort{}
    	}
    	na, _ := netip.AddrFromSlice(a.IP)
    	na = na.WithZone(a.Zone)
    	return netip.AddrPortFrom(na, uint16(a.Port))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 16:58:25 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  8. cni/pkg/ipset/nldeps_unspecified.go

    	return errors.New("not implemented on this platform")
    }
    
    func (m *realDeps) clearEntriesWithIP(name string, ip netip.Addr) error {
    	return errors.New("not implemented on this platform")
    }
    
    func (m *realDeps) listEntriesByIP(name string) ([]netip.Addr, error) {
    	return []netip.Addr{}, errors.New("not implemented on this platform")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 22:24:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. pilot/pkg/util/network/ip_test.go

    	return ret
    }
    
    func MockLookupIPAddr(_ context.Context, _ string) ([]netip.Addr, error) {
    	ret := []netip.Addr{
    		netip.MustParseAddr("2001:db8::68"),
    		netip.MustParseAddr("1.2.3.4"),
    		netip.MustParseAddr("1.2.3.5"),
    	}
    	return ret, nil
    }
    
    func MockLookupIPAddrIPv6(_ context.Context, _ string) ([]netip.Addr, error) {
    	ret := []netip.Addr{
    		netip.MustParseAddr("2001:db8::68"),
    	}
    	return ret, nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 08 16:24:15 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  10. src/net/udpsock_posix.go

    		ip := netip.AddrFrom4(sa.Addr)
    		addr = netip.AddrPortFrom(ip, uint16(sa.Port))
    	case syscall.AF_INET6:
    		var sa syscall.SockaddrInet6
    		n, oobn, flags, err = c.fd.readMsgInet6(b, oob, 0, &sa)
    		ip := netip.AddrFrom16(sa.Addr).WithZone(zoneCache.name(int(sa.ZoneId)))
    		addr = netip.AddrPortFrom(ip, uint16(sa.Port))
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:54:32 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top