Forum Discussion
Benjamin_Wong_1
Nimbostratus
Apr 01, 2006How to make a binary UDP respond packet ?
Actually I am doing a project, it needs the F5 to respond a UDP packet with binary data.
but when i want to respond the UDP packet with UDP::respond , with binary data \x00, the packet it generated will become HEX C080. However, other binary data can be constructed correctly
How can I make a binary data for responding UDP request?
sample code:
when CLIENT_ACCEPTED {
set packet \x00\x70\x00
UDP::respond $packet
}
- James_Yang_9981
Altostratus
the typical create a binary format UDP packet is through binary format command: - Benjamin_Wong_1
Nimbostratus
Actually i have tried to use the binary format command.when CLIENT_ACCEPTED { set packet [binary format S {0x0000}] UDP::response $packet }
- James_Yang_9981
Altostratus
Sorry, it should be UDP::respond command to response the packets. - Benjamin_Wong_1
Nimbostratus
I just look into the release note, As i am using 9.1.0, that is why i have that problem.
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