PPP_ECHO_REQUEST Structure

C

typedef struct _tag_PPPP_ECHO_REQUEST
{
    uint8_t* pData;     
    uint16_t dataSize; 
    uint16_t seqNumber;  
    PPP_ECHO_CALLBACK callback;
    const void* param;     
} PPP_ECHO_REQUEST;

Members

MembersDescription
uint8_t* pData;input: data buffer to be sent as part of the request, callback : pointer to the received data buffer
uint16_t dataSize;input: number of bytes in the input data buffer, callback: number of bytes in the received data buffer
uint16_t seqNumber;monotonic number matching requests and replies
PPP_ECHO_CALLBACK callback;callback function to be called when a reply is received or an error occurred
const void* param;parameter to be used in the callback; it is user defined, PPP does not use it in any way

Description

This structure defines the information required for sending an PPP request that contains user data.

Remarks

When the callback is made with an error result, the PPP_ECHO_REQUEST structure may identify the request, if no reply was received (for example timeout)

This is a PPP ECHO requestBeing a network interface a regular ICMP ping could be used instead