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 g...
James_Yang_9981
Altostratus
Apr 02, 2006the typical create a binary format UDP packet is through binary format command:
here a example:
set ::header_without_id [binary format S5 {0x8180 0x0001 0x0001 0x0000 0x0000}]
this mean format a binary format packet with 5 word. the follow in {} is the value of them. It's very simple, if you use "a5" replace "S5" that means format a packet with 5 char. but you should use value like 0x81 in the follow section. Also, an "a5S5" will be accepted option.
so the sample about 0xC080 packet construction should be:
when CLIENT_ACCEPTED {
set packet [binary format S {0xC080}]
UDP::response $packet
}
so BIGIP will reply 0xC080 for any UDP packet send to BIGIP.
for detail information, you can find the book of TCL about binary format.
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
