Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for bitPosition (0.09 sec)

  1. pkg/util/iptree/iptree.go

    	if prefix.Addr().Is6() {
    		n = t.rootV6
    	}
    	bitPosition := 0
    	// mask the address for sanity
    	address := prefix.Masked().Addr()
    	// we can't check longer than the request mask
    	mask := prefix.Bits()
    	// walk the network bits of the prefix
    	for bitPosition < mask {
    		// Look for a child checking the bit position after the mask
    		n = n.child[getBitFromAddr(address, bitPosition+1)]
    		if n == nil {
    			return zeroT, false
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 17.7K bytes
    - Viewed (0)
Back to top