- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 147 for onetmp (0.92 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
callbacks/query.go
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 09:51:44 UTC 2024 - 10.1K bytes - Viewed (0) -
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) -
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) -
src/net/addrselect.go
// IPv4-compatible, etc. Prefix: netip.PrefixFrom(netip.AddrFrom16([16]byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff}), 96), Precedence: 35, Label: 4, }, { // "::/96" Prefix: netip.PrefixFrom(netip.AddrFrom16([16]byte{}), 96), Precedence: 1, Label: 3, }, { // "2001::/32" // Teredo Prefix: netip.PrefixFrom(netip.AddrFrom16([16]byte{0x20, 0x01}), 32),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 00:24:06 UTC 2024 - 9.7K bytes - Viewed (0)