Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for IPMask (0.11 sec)

  1. src/net/ip_test.go

    	v4mask         = IPMask{255, 255, 255, 0}
    	v4mappedv6mask = IPMask{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 255, 255, 255, 0}
    	v6mask         = IPMask{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0, 0, 0, 0, 0, 0, 0, 0}
    	badaddr        = IP{192, 168, 0}
    	badmask        = IPMask{255, 255, 0}
    	v4maskzero     = IPMask{0, 0, 0, 0}
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 01:17:29 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  2. src/net/ip.go

    // IPv4 mask a.b.c.d.
    func IPv4Mask(a, b, c, d byte) IPMask {
    	p := make(IPMask, IPv4len)
    	p[0] = a
    	p[1] = b
    	p[2] = c
    	p[3] = d
    	return p
    }
    
    // CIDRMask returns an [IPMask] consisting of 'ones' 1 bits
    // followed by 0s up to a total length of 'bits' bits.
    // For a mask of this form, CIDRMask is the inverse of [IPMask.Size].
    func CIDRMask(ones, bits int) IPMask {
    	if bits != 8*IPv4len && bits != 8*IPv6len {
    		return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 03:13:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. src/net/interface_plan9.go

    			maskfld := fields[1]
    			maskfld = maskfld[1:]
    			pfxlen, _, ok := dtoi(maskfld)
    			if !ok {
    				return nil, errors.New("cannot parse network mask for interface: " + status)
    			}
    			var mask IPMask
    			if ip.To4() != nil { // IPv4 or IPv6 IPv4-mapped address
    				mask = CIDRMask(pfxlen-8*len(v4InV6Prefix), 8*IPv4len)
    			}
    			if ip.To16() != nil && ip.To4() == nil { // IPv6 address
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. src/syscall/types_windows.go

    }
    
    type IpAddressString struct {
    	String [16]byte
    }
    
    type IpMaskString IpAddressString
    
    type IpAddrString struct {
    	Next      *IpAddrString
    	IpAddress IpAddressString
    	IpMask    IpMaskString
    	Context   uint32
    }
    
    const MAX_ADAPTER_NAME_LENGTH = 256
    const MAX_ADAPTER_DESCRIPTION_LENGTH = 128
    const MAX_ADAPTER_ADDRESS_LENGTH = 8
    
    type IpAdapterInfo struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  5. src/crypto/x509/parser.go

    				}
    
    				if !isValidIPMask(mask) {
    					return nil, nil, nil, nil, fmt.Errorf("x509: IP constraint contained invalid mask %x", mask)
    				}
    
    				ips = append(ips, &net.IPNet{IP: net.IP(ip), Mask: net.IPMask(mask)})
    
    			case emailTag:
    				constraint := string(value)
    				if err := isIA5String(constraint); err != nil {
    					return nil, nil, nil, nil, errors.New("x509: invalid constraint value: " + err.Error())
    				}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/windows/types_windows.go

    }
    
    type IpAddressString struct {
    	String [16]byte
    }
    
    type IpMaskString IpAddressString
    
    type IpAddrString struct {
    	Next      *IpAddrString
    	IpAddress IpAddressString
    	IpMask    IpMaskString
    	Context   uint32
    }
    
    const MAX_ADAPTER_NAME_LENGTH = 256
    const MAX_ADAPTER_DESCRIPTION_LENGTH = 128
    const MAX_ADAPTER_ADDRESS_LENGTH = 8
    
    type IpAdapterInfo struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 104.1K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(IP).IsUnspecified", Method, 0},
    		{"(IP).MarshalText", Method, 2},
    		{"(IP).Mask", Method, 0},
    		{"(IP).String", Method, 0},
    		{"(IP).To16", Method, 0},
    		{"(IP).To4", Method, 0},
    		{"(IPMask).Size", Method, 0},
    		{"(IPMask).String", Method, 0},
    		{"(InvalidAddrError).Error", Method, 0},
    		{"(InvalidAddrError).Temporary", Method, 0},
    		{"(InvalidAddrError).Timeout", Method, 0},
    		{"(UnknownNetworkError).Error", Method, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top