bilsch_10068
Oct 26, 2010Nimbostratus
Fix to http persistence cookie logger irule
Was working with the persistence cookie logger irule, its logging the wrong value for ports.
http://devcentral.f5.com/wiki/default.aspx/iRules/Persistence_Cookie_Logger.html
Original code
set myPortD [string trimleft [expr 0x[substr $myPortH 2 2]][expr 0x[substr $myPortH 0 2]] 0]
Should be
set myPortD [string trimleft [expr 0x[substr $myPortH 2 2][substr $myPortH 0 2]] 0]
Per the docs https://support.f5.com/kb/en-us/solutions/public/6000/900/sol6917.html , the 2-byte hex values are reversed, so should be re-ordered. However the value should be a single string, not 2 unique hex values.
( not sure if this is the best/right way to post this 😆 )