Forum Discussion
Ralf_Bruenig_74
Jun 02, 2008Historic F5 Account
workaround for 32 bit integer limitation
Hi all,
I need to extract the IP address out of the insert cookie. For this I found the following example on your page:
http://devcentral.f5.com/wiki/default.aspx/iRules/Persistence_Cookie_Logger.html
The problem is this works only for members with IP addresses a.b.c.d where d is < 128. This is most likely, because the integer of tcl is limited to 32 bit minus 1 bit for the sign.
Is there any way around this problem?
Thanks for your answer.
Ralf
- Deb_Allen_18Historic F5 AccountI found an interesting post with some suggestions to force from integer to float - Click here
set myIpH [format %08x $myIpE] set myPortH [format %x $myPortE]
set myIpH [format %08x $myIpE] append "e0" myIpH set myPortH [format %x $myPortE] append "e0" myPortH
- Ralf_Bruenig_74Historic F5 AccountHi deb,
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