Forum Discussion
Asif_Thobhani_7
Nimbostratus
Jun 03, 2006F5 Cookie encoding
Hi,
Is there a method or an easy way in iRule to encode the IP:Port that is compatible with F5.
From BigIP documentation:
--------------------------
Alternatively, you can perform the encoding using the following equation
for address (a.b.c.d):
d*(256^3) + c*(256^2) + b*256 +a
The way to encode the port is to take the two bytes that store the port and
reverse them. Thus, port 80 becomes 80 * 256 + 0 = 20480. Port 1433
(instead of 5 * 256 + 153) becomes 153 * 256 + 5 = 39173.
I am wondering if there is already a method that would do this?
Thanks in advance.
-Asif
- Asif_Thobhani_7
Nimbostratus
After some trial and error, I got the following and it seems to be working...
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