- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,339 for ipnets (0.11 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) -
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) -
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/proxy/ipvs/ipset/ipset.go
ListSets() ([]string, error) // GetVersion returns the "X.Y" version string for ipset. GetVersion() (string, error) } // IPSetCmd represents the ipset util. We use ipset command for ipset execute. const IPSetCmd = "ipset" // EntryMemberPattern is the regular expression pattern of ipset member list. // The raw output of ipset command `ipset list {set}` is similar to, // Name: foobar // Type: hash:ip,port // Revision: 2
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 17.1K bytes - Viewed (0) -
pkg/util/iptree/iptree_test.go
ok = tree.InsertPrefix(ipnet2, 2) if ok { t.Errorf("should not exist: %s", ipnet2) } ok = tree.InsertPrefix(ipnet2, 3) if !ok { t.Errorf("should be updated: %s", ipnet2) } if v, ok := tree.GetPrefix(ipnet2); !ok || v != 3 { t.Errorf("CIDR %s not expected", ipnet2) } // check longer prefix matching ipnet3 := netip.MustParsePrefix("12.1.0.2/32")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:04 UTC 2023 - 17.8K bytes - Viewed (0)