- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,820 for ipnets (0.17 sec)
-
tools/istio-iptables/pkg/capture/testdata/ipnets.golden
deveshkandpal1224 <******@****.***> 1717646003 -0700
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 03:53:23 UTC 2024 - 1.1K bytes - Viewed (0) -
tools/istio-iptables/pkg/capture/testdata/ipv6-ipnets.golden
deveshkandpal1224 <******@****.***> 1717646003 -0700
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 03:53:23 UTC 2024 - 3K bytes - Viewed (0) -
tools/istio-iptables/pkg/capture/testdata/ipnets-with-kube-virt-interfaces.golden
deveshkandpal1224 <******@****.***> 1717646003 -0700
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 03:53:23 UTC 2024 - 1.3K bytes - Viewed (0) -
pkg/api/service/util.go
utilnet "k8s.io/utils/net" ) const ( defaultLoadBalancerSourceRanges = "0.0.0.0/0" ) // IsAllowAll checks whether the utilnet.IPNet allows traffic from 0.0.0.0/0 func IsAllowAll(ipnets utilnet.IPNetSet) bool { for _, s := range ipnets.StringSlice() { if s == "0.0.0.0/0" { return true } } return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 30 15:56:47 UTC 2023 - 3.2K bytes - Viewed (0) -
pkg/api/v1/service/util.go
v1 "k8s.io/api/core/v1" utilnet "k8s.io/utils/net" ) const ( defaultLoadBalancerSourceRanges = "0.0.0.0/0" ) // IsAllowAll checks whether the utilnet.IPNet allows traffic from 0.0.0.0/0 func IsAllowAll(ipnets utilnet.IPNetSet) bool { for _, s := range ipnets.StringSlice() { if s == "0.0.0.0/0" { return true } } return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 30 15:56:47 UTC 2023 - 3.3K bytes - Viewed (0) -
tools/istio-iptables/pkg/capture/run_test.go
func(cfg *config.Config) { cfg.KubeVirtInterfaces = "eth1,eth2" cfg.OutboundIPRangesInclude = "*" }, }, { "ipnets", func(cfg *config.Config) { cfg.OutboundIPRangesInclude = "10.0.0.0/8" }, }, { "ipnets-with-kube-virt-interfaces", func(cfg *config.Config) { cfg.KubeVirtInterfaces = "eth1,eth2" cfg.OutboundIPRangesInclude = "10.0.0.0/8" },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 22:24:38 UTC 2024 - 8.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/net/util.go
) // IPNetEqual checks if the two input IPNets are representing the same subnet. // For example, // // 10.0.0.1/24 and 10.0.0.0/24 are the same subnet. // 10.0.0.1/24 and 10.0.0.0/25 are not the same subnet. func IPNetEqual(ipnet1, ipnet2 *net.IPNet) bool { if ipnet1 == nil || ipnet2 == nil { return false } if reflect.DeepEqual(ipnet1.Mask, ipnet2.Mask) && ipnet1.Contains(ipnet2.IP) && ipnet2.Contains(ipnet1.IP) { return true }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 20 19:02:55 UTC 2023 - 1.7K bytes - Viewed (0) -
pkg/api/service/util_test.go
} } func TestAllowAll(t *testing.T) { checkAllowAll := func(allowAll bool, cidrs ...string) { t.Helper() ipnets, err := utilnet.ParseIPNets(cidrs...) if err != nil { t.Errorf("Unexpected error parsing cidrs: %v", cidrs) } if allowAll != IsAllowAll(ipnets) { t.Errorf("IsAllowAll did not return expected value for %v", cidrs) } } checkAllowAll(false, "10.0.0.1/32")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 01 15:18:45 UTC 2023 - 7.6K bytes - Viewed (0) -
pkg/api/v1/service/util_test.go
} } func TestAllowAll(t *testing.T) { checkAllowAll := func(allowAll bool, cidrs ...string) { t.Helper() ipnets, err := utilnet.ParseIPNets(cidrs...) if err != nil { t.Errorf("Unexpected error parsing cidrs: %v", cidrs) } if allowAll != IsAllowAll(ipnets) { t.Errorf("IsAllowAll did not return expected value for %v", cidrs) } } checkAllowAll(false, "10.0.0.1/32")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 01 15:18:45 UTC 2023 - 8.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/net/util_test.go
"testing" "time" "golang.org/x/net/http2" netutils "k8s.io/utils/net" ) func getIPNet(cidr string) *net.IPNet { _, ipnet, _ := netutils.ParseCIDRSloppy(cidr) return ipnet } func TestIPNetEqual(t *testing.T) { testCases := []struct { ipnet1 *net.IPNet ipnet2 *net.IPNet expect bool }{ // null case { getIPNet("10.0.0.1/24"), getIPNet(""), false, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 20 19:02:55 UTC 2023 - 4.3K bytes - Viewed (0)