icmp echo request and response automatically adds 8 bytes to the payload with a tick count #498
Labels
Element: ICMP
Issues related to TIdICMPClient
Status: Deferred
Issue to be re-reviewed in a future release
Type: Enhancement
Issue is proposing a new feature/enhancement
Milestone
We are unable to use the ICMP client component for our task because we need to be able to do a ping (ICMP Request and Response) with a data payload of 1 bytes However, internal to the the IdICMPClient class within the PrepareEchoRequestIPv4(const ABuffer: String); method, it will include an 8 byte value that comes from the tick counter. This means if we pass in a buffer of 1 character, then
the data payload that is actually sent is 9 bytes.
This internal mechanism should allow us to build the actual payload instead of forcing 8 bytes plus the bytes from the string characters. Further, because nothing internal to this class is virtual, we cannot override this behavior easily with a descendant class. Also, there should be a method to do a ping with a binary array of data payload and not a string that then internally must be converted to the array of bytes payload.
The text was updated successfully, but these errors were encountered: