Forum Discussion
Parsing IP to extract subnet
Hi Piotr,
the "best solution" will strongly depend on how often you've to contruct the $newaddr on a single TCP connection.
1.) Using the [scan] command to split an IP into octets will cost more cpu cycles than transforming the IP using the [IP::addr] command. So for a single transformation the [IP::addr] command should be used.
2.) Using a [scan] command once during CLIENT_ACCEPTED and then substitute different subnet variations and/or perform this action on multiple consecutive HTTP_REQUEST would be faster than calling [IP::addr] multiple times.
Cheers, Kai
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