Forum Discussion
WC_159542
Nimbostratus
Jun 03, 2014Session Counter iRule For IPv6
Dear All:
We use iRule below count session is work for ipv4 but not ipv6.
Anyone know why??
when HTTP_REQUEST {
set static::maxquery 100
set static::holdtime 6
set static::tracki...
Jun 03, 2014
Hi again
Try replacing
set sub [getfield $srcip "." 4]
with
set sub [getfield $srcip ":" 8]
Difference now though is that you'd get 65535 possible subtables instead of 255.
If you want to keep the 255 factor you could do this instead:
set sub [expr {[crc32 [getfield $srcip ":" 8]] % 255}]
/Patrik
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects