Forum Discussion
Ganesh_Ramamoor
Nimbostratus
Nov 01, 2005UDP iRule question
If I want to have an iRule for UDP data that will distribute based on a string that is in the first 50 bytes, this simple iRule should do it right?
when CLIENT_ACCEPTED { UDP::collect 50 } ...
unRuleY_95363
Nov 03, 2005Historic F5 Account
I have two comments.
First, UDP::payload doesn't make sense in the SERVER_CONNECTED event. At this point, there is no payload. You need to use UDP::payload either in CLIENT_DATA or SERVER_DATA. If there is data from the UDP payload that you want to use in a later event, like SERVER_CONNECTED, then you will need to parse it into a variable and use the variable in the other event.
Second, I'm not sure why you have extra curly braces {} around the UDP::payload command. You should simply use: [UDP::payload] to get the contents.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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