- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 36 for igmp (0.06 sec)
-
src/net/lookup.go
// // See https://www.iana.org/assignments/protocol-numbers // // On Unix, this map is augmented by readProtocols via lookupProtocol. var protocols = map[string]int{ "icmp": 1, "igmp": 2, "tcp": 6, "udp": 17, "ipv6-icmp": 58, } // services contains minimal mappings between services names and port // numbers for platforms that don't have a complete list of port numbers. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 28.6K bytes - Viewed (0) -
src/net/lookup_test.go
func TestLookupProtocol_Minimal(t *testing.T) { type test struct { name string want int } var tests = []test{ {"tcp", 6}, {"TcP", 6}, // case shouldn't matter {"icmp", 1}, {"igmp", 2}, {"udp", 17}, {"ipv6-icmp", 58}, } for _, tt := range tests { got, err := lookupProtocol(context.Background(), tt.name) if got != tt.want || err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 41.4K bytes - Viewed (0) -
cmd/import-boss/main.go
direct, indirect := transitiveImports(pkg) isDirect := map[string]bool{} for _, imp := range direct { isDirect[imp] = true } relate := func(imp string) string { if isDirect[imp] { return "->" } return "-->" } var errs []error for _, imp := range uniq(direct, indirect) { if unmassage(imp) == realPkgPath { // Tests in package "foo_test" depend on the test package for
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 12:36:49 UTC 2024 - 14.7K bytes - Viewed (0) -
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) -
src/cmd/compile/internal/types2/resolver.go
} else { imp, err = importer.Import(path) if imp == nil && err == nil { err = fmt.Errorf("Config.Importer.Import(%s) returned nil but no error", path) } } // make sure we have a valid package name // (errors here can only happen through manipulation of packages after creation) if err == nil && imp != nil && (imp.name == "_" || imp.name == "") { err = fmt.Errorf("invalid package name: %q", imp.name)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 14:10:44 UTC 2024 - 26.3K bytes - Viewed (0) -
src/go/types/resolver.go
imp, err = importer.Import(path) if imp == nil && err == nil { err = fmt.Errorf("Config.Importer.Import(%s) returned nil but no error", path) } } // make sure we have a valid package name // (errors here can only happen through manipulation of packages after creation) if err == nil && imp != nil && (imp.name == "_" || imp.name == "") { err = fmt.Errorf("invalid package name: %q", imp.name)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:22:59 UTC 2024 - 26.1K bytes - Viewed (0) -
prow/config/calico.yaml
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 21 18:32:01 UTC 2024 - 246.5K bytes - Viewed (0) -
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) -
src/go/build/deps_test.go
t.Error(err) continue } if sawImport[pkg] == nil { sawImport[pkg] = map[string]bool{} } var bad []string for _, imp := range imports { sawImport[pkg][imp] = true if !policy.HasEdge(pkg, imp) { bad = append(bad, imp) } } if bad != nil { t.Errorf("unexpected dependency: %s imports %v", pkg, bad) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 19.2K bytes - Viewed (0) -
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)