Forum Discussion
iRule Compare function
compare ip to a subnet
2 Replies
- nathe
Cirrocumulus
Rather sparse question but a shot in the dark....
Does this article help you?
iRules IP Comparison Considerations with IP::addr Command
Hope so.
N
- What_Lies_Bene1
Cirrostratus
Just a few notes on performance;
-
When using the IP::addr command to compare IP addresses with the if command, always use prefix notation for subnet masks (/24 for instance) rather than the mask x.x.x.x syntax as this uses less CPU cycles
-
When using the IP::addr command to compare IP addresses, specify any subnet masks with the second address or subnet to be compared, not the first; doing so uses less CPU cycles
-
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com