Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for igmp (0.04 sec)

  1. src/net/iprawsock_test.go

    			}
    		}
    	}
    }
    
    var ipConnLocalNameTests = []struct {
    	net   string
    	laddr *IPAddr
    }{
    	{"ip4:icmp", &IPAddr{IP: IPv4(127, 0, 0, 1)}},
    	{"ip4:icmp", &IPAddr{}},
    	{"ip4:icmp", nil},
    }
    
    func TestIPConnLocalName(t *testing.T) {
    	for _, tt := range ipConnLocalNameTests {
    		if !testableNetwork(tt.net) {
    			t.Logf("skipping %s test", tt.net)
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. src/go/types/resolver_test.go

    	imported map[string]bool
    }
    
    func (imp *resolveTestImporter) Import(string) (*Package, error) {
    	panic("should not be called")
    }
    
    func (imp *resolveTestImporter) ImportFrom(path, srcDir string, mode ImportMode) (*Package, error) {
    	if mode != 0 {
    		panic("mode must be 0")
    	}
    	if imp.importer == nil {
    		imp.importer = importer.Default().(ImporterFrom)
    		imp.imported = make(map[string]bool)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. cmd/preferredimports/preferredimports.go

    			replacements := make(map[string]string)
    			pathToFile := a.fset.File(file.Pos()).Name()
    			for _, imp := range file.Imports {
    				importPath := strings.Replace(imp.Path.Value, "\"", "", -1)
    				pathSegments := strings.Split(importPath, "/")
    				importName := pathSegments[len(pathSegments)-1]
    				if imp.Name != nil {
    					importName = imp.Name.Name
    				}
    				for re, template := range aliases {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:44 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. cmd/importverifier/importverifier.go

    		imports = append(imports, append(pkg.TestImports, pkg.XTestImports...)...)
    	}
    	for _, imp := range imports {
    		if i.isForbidden(imp) {
    			forbiddenImportSet[imp] = struct{}{}
    		}
    	}
    
    	var forbiddenImports []string
    	for imp := range forbiddenImportSet {
    		forbiddenImports = append(forbiddenImports, imp)
    	}
    	return forbiddenImports
    }
    
    // isForbidden determines if an import is forbidden,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:16 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/facts/imports.go

    			}
    		case *types.TypeParam:
    			if !typs[T] {
    				typs[T] = true
    				addObj(T.Obj())
    				addType(T.Constraint())
    			}
    		}
    	}
    
    	for _, imp := range imports {
    		packages[imp.Path()] = imp
    
    		scope := imp.Scope()
    		for _, name := range scope.Names() {
    			addObj(scope.Lookup(name))
    		}
    	}
    
    	return packages
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. pkg/proxy/ipvs/ipset/types.go

    const (
    	// HashIPPort represents the `hash:ip,port` type ipset.  The hash:ip,port is similar to hash:ip but
    	// you can store IP address and protocol-port pairs in it.  TCP, SCTP, UDP, UDPLITE, ICMP and ICMPv6 are supported
    	// with port numbers/ICMP(v6) types and other protocol numbers without port information.
    	HashIPPort Type = "hash:ip,port"
    	// HashIPPortIP represents the `hash:ip,port,ip` type ipset.  The hash:ip,port,ip set type uses a hash to store
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modindex/scan.go

    			rf.synopsis = doc.Synopsis(info.parsed.Doc.Text())
    		}
    
    		var cgoDirectives []string
    		for _, imp := range info.imports {
    			if imp.path == "C" {
    				cgoDirectives = append(cgoDirectives, extractCgoDirectives(imp.doc.Text())...)
    			}
    			rf.imports = append(rf.imports, rawImport{path: imp.path, position: fset.Position(imp.pos)})
    		}
    		rf.cgoDirectives = strings.Join(cgoDirectives, "\n")
    		for _, emb := range info.embeds {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. pkg/config/schema/codegen/collections.go

    }
    
    func toIstioAwareImport(p string) string {
    	imp := strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll(p, "/", ""), ".", ""), "-", "")
    	if strings.Contains(p, "istio.io") {
    		return "api" + imp
    	}
    	return imp
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 25 07:19:43 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/format.go

    	forName, ok := check.pkgPathMap[pkg.name]
    	if !ok {
    		forName = make(map[string]bool)
    		check.pkgPathMap[pkg.name] = forName
    	}
    	forName[pkg.path] = true
    
    	for _, imp := range pkg.imports {
    		check.markImports(imp)
    	}
    }
    
    // stripAnnotations removes internal (type) annotations from s.
    func stripAnnotations(s string) string {
    	var buf strings.Builder
    	for _, r := range s {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. src/internal/concurrent/hashtriemap_test.go

    		})
    		for _, s := range testData {
    			expectMissing(t, s, 0)(m.Load(s))
    		}
    	})
    	t.Run("ConcurrentLifecycleUnsharedKeys", func(t *testing.T) {
    		m := newMap()
    
    		gmp := runtime.GOMAXPROCS(-1)
    		var wg sync.WaitGroup
    		for i := range gmp {
    			wg.Add(1)
    			go func(id int) {
    				defer wg.Done()
    
    				makeKey := func(s string) string {
    					return s + "-" + strconv.Itoa(id)
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:01:55 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top