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 }
when CLIENT_DATA {
if { [UDP::payload 50] contains "xyz" } {
pool server_1
} else {
pool server_2
}
}
And when does the CLIENT_ACCEPTED get invoked for an UDP iRule? Does the client have to use the UDP connect first before sending data for the CLIENT_ACCEPTED to get invoked?
Thanks
- Ganesh_Ramamoor
Nimbostratus
Oh, on further search and trying out the iRule, I see that UDP::collect is not defined. - unRuleY_95363Historic F5 AccountFor UDP (and only UDP), the CLIENT_ACCEPTED event is fired on the first UDP datagram received. The CLIENT_DATA event is automatically fired for each UDP datagram received. You don't need to issue a UDP::collect (and hence it doesn't exist).
- Jeroen_De_Wilde
Nimbostratus
Hi, - unRuleY_95363Historic F5 AccountI have two comments.
- Jeroen_De_Wilde
Nimbostratus
Thanks for your suggestion. I'll try what you've suggested
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