Do the bitwise operators work on IPv6 addresses? If they do, I can’t figure out how. If I try to do a bitwise &, I get “Script Error: cannot compute bitwise “and” of internal number and time interval”. Likewise, a bitshift gives me “Script Error: cannot shift internal number right by time interval”.
I’m trying to get the prefix of an address from the address and the prefix size/netmask/cidr mask. I know it’s usually /64, and I could look for the 4th colon, but that isn’t necessarily a guarantee.