Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 147 for onetmp (0.14 sec)

  1. src/net/netip/netip.go

    // Package netip defines an IP address type that's a small value type.
    // Building on that [Addr] type, the package also defines [AddrPort] (an
    // IP address and a port) and [Prefix] (an IP address and a bit length
    // prefix).
    //
    // Compared to the [net.IP] type, [Addr] type takes less memory, is immutable,
    // and is comparable (supports == and being a map key).
    package netip
    
    import (
    	"cmp"
    	"errors"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  2. src/net/addrselect_test.go

    				{IP: ParseIP("23.23.134.56")},
    				{IP: ParseIP("23.21.50.150")},
    			},
    			srcs: []netip.Addr{
    				netip.MustParseAddr("10.2.3.4"),
    				netip.MustParseAddr("10.2.3.4"),
    				netip.MustParseAddr("10.2.3.4"),
    				netip.MustParseAddr("10.2.3.4"),
    				netip.MustParseAddr("10.2.3.4"),
    				netip.MustParseAddr("10.2.3.4"),
    			},
    			want: []IPAddr{
    				{IP: ParseIP("54.83.193.112")},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 05 07:16:00 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  3. pkg/util/iptree/iptree_test.go

    	tests := []struct {
    		name string
    		a    netip.Prefix
    		b    netip.Prefix
    		want netip.Prefix
    	}{
    		{
    			name: "ipv4 direct parent",
    			a:    netip.MustParsePrefix("192.168.0.0/24"),
    			b:    netip.MustParsePrefix("192.168.1.0/24"),
    			want: netip.MustParsePrefix("192.168.0.0/23"),
    		},
    		{
    			name: "ipv4 root parent ",
    			a:    netip.MustParsePrefix("192.168.0.0/24"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  4. pkg/dns/client/dns_test.go

    		},
    		{
    			name:     "success: k8s host - name.namespace",
    			host:     "productpage.ns1.",
    			expected: a("productpage.ns1.", []netip.Addr{netip.MustParseAddr("9.9.9.9")}),
    		},
    		{
    			name:     "success: k8s host - shortname",
    			host:     "productpage.",
    			expected: a("productpage.", []netip.Addr{netip.MustParseAddr("9.9.9.9")}),
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 16:17:34 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  5. tools/istio-iptables/pkg/config/config_test.go

    				return tesrLocalIPAddrs([]netip.Addr{
    					netip.MustParseAddr("127.0.0.1"),
    					netip.MustParseAddr("1.2.3.5"),
    				})
    			},
    			isDS:     false,
    			expected: false,
    		},
    		{
    			name: "ipv6 only local ip addresses",
    			lipas: func() ([]net.Addr, error) {
    				return tesrLocalIPAddrs([]netip.Addr{
    					netip.MustParseAddr("::1"),
    					netip.MustParseAddr("2222:3333::1"),
    				})
    			},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 22:24:38 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. pkg/registry/core/service/ipallocator/ipallocator_test.go

    	tests := []struct {
    		name   string
    		subnet netip.Prefix
    		want   netip.Addr
    	}{
    		{
    			name:   "ipv4",
    			subnet: netip.MustParsePrefix("192.168.0.0/24"),
    			want:   netip.MustParseAddr("192.168.0.255"),
    		},
    		{
    			name:   "ipv4 no nibble boundary",
    			subnet: netip.MustParsePrefix("10.0.0.0/12"),
    			want:   netip.MustParseAddr("10.15.255.255"),
    		},
    		{
    			name:   "ipv6",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jun 25 13:14:46 UTC 2023
    - 24.2K bytes
    - Viewed (0)
  7. callbacks/query.go

    										where.Build(&onStmt)
    
    										if onSQL := onStmt.SQL.String(); onSQL != "" {
    											vars := onStmt.Vars
    											for idx, v := range vars {
    												bindvar := strings.Builder{}
    												onStmt.Vars = vars[0 : idx+1]
    												db.Dialector.BindVarTo(&bindvar, &onStmt, v)
    												onSQL = strings.Replace(onSQL, bindvar.String(), "?", 1)
    											}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 09:51:44 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/net_test.go

    	fakeIPSetDeps.On("addIP",
    		"foo-v4",
    		netip.MustParseAddr("99.9.9.9"),
    		ipProto,
    		podUID,
    		false,
    	).Return(nil)
    
    	fakeIPSetDeps.On("addIP",
    		"foo-v4",
    		netip.MustParseAddr("2.2.2.2"),
    		ipProto,
    		podUID,
    		false,
    	).Return(nil)
    
    	podIPs := []netip.Addr{netip.MustParseAddr("99.9.9.9"), netip.MustParseAddr("2.2.2.2")}
    	_, err := addPodToHostNSIpset(pod, podIPs, &set)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  9. 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)
  10. pkg/util/net/ip.go

    		} else {
    			log.Debugf("ignoring un-parsable IP address: %v", ip)
    		}
    	}
    	return
    }
    
    // ParseIPsSplitToV4V6 returns two slice of ipv4 and ipv6 netip.Addr.
    func ParseIPsSplitToV4V6(ips []string) (ipv4 []netip.Addr, ipv6 []netip.Addr) {
    	for _, i := range ips {
    		ip, err := netip.ParseAddr(i)
    		if err != nil {
    			log.Debugf("ignoring un-parsable IP address: %v", err)
    			continue
    		}
    		if ip.Is4() {
    			ipv4 = append(ipv4, ip)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 01 14:41:40 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top