Forum Discussion
John_Barney_102
Nimbostratus
Apr 18, 2005UDP::payload replace
Anyone know if "replace" is supported in UDP::payload?
The documentation does not list it.
If not, does anyone know of a way to manipulate some data (generically) in UDP packets...
John_Barney_102
Nimbostratus
Apr 25, 2005We're running 9.0.4.
Error appears when saving the rule through the GUI.
Here's the code:
when CLIENT_DATA {
set payload [UDP::payload [UDP::payload length]]
set blank “\n”
Find the data to replace
regsub -all "Replace me\n" $payload $blank new_response
Replace the content if there was a match
if {$new_response != 0} {
UDP::payload replace 0 [UDP::payload length] $new_response
}
}
Result is wrong of arguments, line 10.
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