- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 68 for onetmp (0.19 sec)
-
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) -
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/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) -
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) -
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) -
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) -
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) -
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) -
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)