Accessing TCP Options from iRules
Published Mar 25, 2011
Version 1.0Was this article helpful?
Yes, you're correct:
---
} else {
set optaddr [IP::addr parse -ipv4 $opt28 1]
if { [catch {IP::addr $x mask 255.255.255.255}] } {
log local0. "$optaddr is not a valid address"
snat automap
---
That $x should be $optaddr in this example.
It isn't clear from https://clouddocs.f5.com/api/irules/IP__addr.html if it throws an exception, and I'm not sure offhand - probably something to check.