Forum Discussion
6 Replies
Sort By
- Michael_YatesNimbostratus[IP::addr] - Performs comparison of IP address/subnet/supernet to IP address/subnet/supernet.
[IP::addr [IP::client_addr]]/24 equals xxx.xxx.xxx.xxx][
- hooleylistCirrostratusI was looking for a post from unRuleY which had more detail, but couldn't find it. I believe IP::addr does a more efficient byte comparison than you could do with a string comparison. And as Michael points out, IP::addr allows you to do CIDR comparisons that you couldn't easily do with string operations.
- Chris_MillerAltostratusPosted By hoolio on 06/24/2010 11:18 AM
- hooleylistCirrostratusI expect [IP::addr $ip] would return 1 if $ip was an IP address and a runtime error if it's not. So I don't see any reason to use that. Running a class command (class, matchclass, etc) with an IP address/network against an address type datagroup should use a byte comparison and be more efficient than a string comparison.
- JRahmAdminJust an FYI, most efficient format for comparison is
- hooleylistCirrostratusHey Jason,