Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ipp (0.01 sec)

  1. src/net/netip/fuzz_test.go

    		checkStringParseRoundTrip(t, port, ParseAddrPort)
    		checkEncoding(t, port)
    
    		ipp, err := ParsePrefix(s)
    		if err == nil {
    			checkStringParseRoundTrip(t, ipp, ParsePrefix)
    			checkEncoding(t, ipp)
    		}
    		ipp = PrefixFrom(ip, 8)
    		checkStringParseRoundTrip(t, ipp, ParsePrefix)
    		checkEncoding(t, ipp)
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 20 23:46:23 UTC 2021
    - 10.5K bytes
    - Viewed (0)
  2. tools/istio-iptables/pkg/capture/run.go

    	for _, ipRange := range split(cidrList) {
    		ipp, err := netip.ParsePrefix(ipRange)
    		if err != nil {
    			_, err = fmt.Fprintf(os.Stderr, "Ignoring error for bug compatibility with istio-iptables: %s\n", err.Error())
    			if err != nil {
    				return ipv4Ranges, ipv6Ranges, err
    			}
    			continue
    		}
    		if ipp.Addr().Is4() {
    			ipv4Ranges.CIDRs = append(ipv4Ranges.CIDRs, ipp)
    			if ipp.Addr().IsLoopback() {
    				ipv4Ranges.HasLoopBackIP = true
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 03:53:23 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/kube/controller/ambient/authorization.go

    			continue
    		}
    
    		var (
    			ipAddr        netip.Addr
    			maxCidrPrefix uint32
    		)
    
    		if strings.Contains(m, "/") {
    			ipp, err := netip.ParsePrefix(m)
    			if err != nil {
    				continue
    			}
    			ipAddr = ipp.Addr()
    			maxCidrPrefix = uint32(ipp.Bits())
    		} else {
    			ipa, err := netip.ParseAddr(m)
    			if err != nil {
    				continue
    			}
    
    			ipAddr = ipa
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 16:23:36 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  4. src/net/netip/netip.go

    func ParseAddrPort(s string) (AddrPort, error) {
    	var ipp AddrPort
    	ip, port, v6, err := splitAddrPort(s)
    	if err != nil {
    		return ipp, err
    	}
    	port16, err := strconv.ParseUint(port, 10, 16)
    	if err != nil {
    		return ipp, errors.New("invalid port " + strconv.Quote(port) + " parsing " + strconv.Quote(s))
    	}
    	ipp.port = uint16(port16)
    	ipp.ip, err = ParseAddr(ip)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  5. pilot/pkg/networking/util/util.go

    		}
    	}
    
    	return true
    }
    
    func toMaskedPrefix(c *core.CidrRange) (netip.Prefix, error) {
    	ipp, err := netip.ParsePrefix(c.AddressPrefix + "/" + strconv.Itoa(int(c.PrefixLen.GetValue())))
    	if err != nil {
    		log.Errorf("failed to parse CidrRange %v as IPNet: %v", c, err)
    	}
    
    	return ipp.Masked(), err
    }
    
    // meshconfig ForwardClientCertDetails and the Envoy config enum are off by 1
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
Back to top