- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for ipStr (0.07 sec)
-
android/guava-tests/test/com/google/common/net/InetAddressesTest.java
String ipStr = "192.168.0.1"; // Shouldn't hit DNS, because it's an IP string literal. InetAddress ipv4Addr = InetAddress.getByName(ipStr); assertEquals(ipv4Addr, InetAddresses.forString(ipStr)); assertTrue(InetAddresses.isInetAddress(ipStr)); } public void testForStringIPv4NonAsciiInput() throws UnknownHostException { String ipStr = "૧૯૨.૧૬૮.૦.૧"; // 192.168.0.1 in Gujarati digits
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 24 16:44:05 UTC 2024 - 35.3K bytes - Viewed (0) -
pkg/proxy/util/utils.go
// MapIPsByIPFamily maps a slice of IPs to their respective IP families (v4 or v6) func MapIPsByIPFamily(ipStrings []string) map[v1.IPFamily][]net.IP { ipFamilyMap := map[v1.IPFamily][]net.IP{} for _, ipStr := range ipStrings { ip := netutils.ParseIPSloppy(ipStr) if ip != nil { // Since ip is parsed ok, GetIPFamilyFromIP will never return v1.IPFamilyUnknown ipFamily := GetIPFamilyFromIP(ip)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 11:57:43 UTC 2024 - 7.4K bytes - Viewed (0) -
cni/pkg/iptables/iptables_test.go
probeSNATipv6 := netip.MustParseAddr("e9ac:1e77:90ca:399f:4d6d:ece2:2f9b:3164") for _, tt := range cases { for _, ipv6 := range []bool{false, true} { t.Run(tt.name+"_"+ipstr(ipv6), func(t *testing.T) { cfg := constructTestConfig() cfg.EnableIPv6 = ipv6 tt.config(cfg) ext := &dep.DependenciesStub{} iptConfigurator, _ := NewIptablesConfigurator(cfg, ext, EmptyNlDeps())
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 20:16:04 UTC 2024 - 3.7K bytes - Viewed (0) -
pkg/proxy/util/utils_test.go
var ipStr []string for _, ip := range ipMap[ipFamily] { ipStr = append(ipStr, ip.String()) } if !reflect.DeepEqual(testcase.expectCorrect, ipStr) { t.Errorf("Test %v failed: expected %v, got %v", testcase.desc, testcase.expectCorrect, ipMap[ipFamily]) } ipStr = nil for _, ip := range ipMap[otherIPFamily] { ipStr = append(ipStr, ip.String()) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 11:57:43 UTC 2024 - 17.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/reconcilers/peer_endpoint_lease.go
if len(ip.Subsets) > 0 { var ipStr, portStr string if len(ip.Subsets[0].Addresses) > 0 { if len(ip.Subsets[0].Addresses[0].IP) > 0 { ipStr = ip.Subsets[0].Addresses[0].IP } } if len(ip.Subsets[0].Ports) > 0 { portStr = fmt.Sprint(ip.Subsets[0].Ports[0].Port) } fullAddr = net.JoinHostPort(ipStr, portStr) break } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 24 09:23:05 UTC 2023 - 12.3K bytes - Viewed (0) -
pkg/proxy/nftables/helpers_test.go
nft: nft, nodeIPs: sets.New(nodeIPs...), t: t, } } func (tracer *nftablesTracer) addressMatches(ipStr string, wantMatch bool, ruleAddress string) bool { ip := netutils.ParseIPSloppy(ipStr) if ip == nil { tracer.t.Fatalf("Bad IP in test case: %s", ipStr) } var match bool if strings.Contains(ruleAddress, "/") { _, cidr, err := netutils.ParseCIDRSloppy(ruleAddress)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 02 09:57:47 UTC 2024 - 48.5K bytes - Viewed (0) -
cmd/kubeadm/app/preflight/checks.go
} if cfg.Discovery.BootstrapToken != nil { ipstr, _, err := net.SplitHostPort(cfg.Discovery.BootstrapToken.APIServerEndpoint) if err == nil { checks = append(checks, HTTPProxyCheck{Proto: "https", Host: ipstr}, ) if ip := netutils.ParseIPSloppy(ipstr); ip != nil { if netutils.IsIPv4(ip) { checks = addIPv4Checks(checks) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 03 11:20:55 UTC 2024 - 39.5K bytes - Viewed (0) -
pkg/proxy/servicechangetracker_test.go
return ServicePortName{ NamespacedName: makeNSN(ns, name), Port: port, Protocol: protocol, } } func makeIPs(ipStr ...string) []net.IP { var ips []net.IP for _, s := range ipStr { ips = append(ips, netutils.ParseIPSloppy(s)) } return ips } func mustMakeCIDRs(cidrStr ...string) []*net.IPNet { var cidrs []*net.IPNet for _, s := range cidrStr {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 33.7K bytes - Viewed (0) -
pkg/proxy/ipvs/proxier.go
// can be reused for all nodePort services. var nodeIPs []net.IP if hasNodePort { if proxier.nodePortAddresses.MatchAll() { for _, ipStr := range nodeAddressSet.UnsortedList() { nodeIPs = append(nodeIPs, netutils.ParseIPSloppy(ipStr)) } } else { allNodeIPs, err := proxier.nodePortAddresses.GetNodeIPs(proxier.networkInterfacer) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Apr 28 15:51:23 UTC 2024 - 77.7K bytes - Viewed (0) -
pkg/proxy/iptables/proxier_test.go
// ipStr. address.Value is either an IP address ("1.2.3.4") or a CIDR string // ("1.2.3.0/24"). func addressMatches(t *testing.T, address *iptablestest.IPTablesValue, ipStr string) bool { ip := netutils.ParseIPSloppy(ipStr) if ip == nil { t.Fatalf("Bad IP in test case: %s", ipStr) } var matches bool if strings.Contains(address.Value, "/") {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 14:39:54 UTC 2024 - 249.9K bytes - Viewed (0)