Michael_Koyfma1
Apr 14, 2006Cirrus
Concatenate two values into one
I need to ocncatenate two values into one variable and separate them by a :
Basically, I need to build a string/variable that looks like clientaddress:clientport. I've tried to enter this in the iRule:
set srctoken [concat [IP::addr] [TCP::client_port]]
However, when I try to save the iRule, I get an error that says [wrong args] [IP::addr]
Also, I can't seem to figure out what's the proper way to insert a ":" betweent he argument. If the client's IP address is 10.1.1.1 and destination port is 80, then I need to create a string that looks like 10.1.1.1:80
Any help is greatly appreciated.
-Michael