Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for igmp (0.08 sec)

  1. src/net/interface_linux.go

    }
    
    // interfaceMulticastAddrTable returns addresses for a specific
    // interface.
    func interfaceMulticastAddrTable(ifi *Interface) ([]Addr, error) {
    	ifmat4 := parseProcNetIGMP("/proc/net/igmp", ifi)
    	ifmat6 := parseProcNetIGMP6("/proc/net/igmp6", ifi)
    	return append(ifmat4, ifmat6...), nil
    }
    
    func parseProcNetIGMP(path string, ifi *Interface) []Addr {
    	fd, err := open(path)
    	if err != nil {
    		return nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 27 05:42:03 UTC 2022
    - 7K bytes
    - Viewed (0)
  2. misc/cgo/gmp/gmp.go

    hand a Go pointer to C code but must separately arrange for
    Go to hang on to a reference to the pointer until C is done with it.
    */
    package gmp
    
    /*
    #cgo LDFLAGS: -lgmp
    #include <gmp.h>
    #include <stdlib.h>
    
    // gmp 5.0.0+ changed the type of the 3rd argument to mp_bitcnt_t,
    // so, to support older versions, we wrap these two functions.
    void _mpz_mul_2exp(mpz_ptr a, mpz_ptr b, unsigned long n) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/go/importer/importer_test.go

    	if compiler == "gccgo" {
    		t.Skip("golang.org/issue/22500")
    	}
    
    	fset := token.NewFileSet()
    
    	t.Run("LookupDefault", func(t *testing.T) {
    		imp := ForCompiler(fset, compiler, nil)
    		pkg, err := imp.Import(thePackage)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if pkg.Path() != thePackage {
    			t.Fatalf("Path() = %q, want %q", pkg.Path(), thePackage)
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 25 21:16:32 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/compile/internal/types2/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 = defaultImporter().(ImporterFrom)
    		imp.imported = make(map[string]bool)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:59:20 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top