Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ipStr (0.02 sec)

  1. 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)
  2. 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)
  3. test/fixedbugs/issue15528.go

    	{fmt.Stringer(nil), "<nil> <nil> %!s(<nil>)"},
    	{(*RWS)(nil), "*main.RWS (*main.RWS)(nil) rws"},
    }
    
    // Test correct handling of direct interface values
    var (
    	one  int         = 1
    	iptr interface{} = &one
    	clos int
    	f    interface{} = func() { clos++ }
    	deep interface{} = [1]struct{ a *[2]byte }{{a: &[2]byte{'z', 'w'}}}
    	ch   interface{} = make(chan bool, 1)
    )
    
    func main() {
    	var fail bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 12 14:31:26 UTC 2016
    - 3.1K bytes
    - Viewed (0)
Back to top