#include "net\ip.h"
#include "net\mac.h"
Defines | |
#define | ICMPIsTxReady() MACIsTxReady(TRUE) |
#define | MAX_ICMP_DATA (32ul) |
#define | MAX_ICMP_DATA_LEN (MAX_ICMP_DATA) |
Typedefs | |
typedef enum _ICMP_CODE | ICMP_CODE |
typedef enum _ICMP_CODE | ICMP_REQUESTS |
Enumerations | |
enum | _ICMP_CODE { ICMP_ECHO_REPLY = 0, ICMP_ECHO_REQUEST = 8 } |
Functions | |
BOOL | ICMPGet (ICMP_CODE *code, BYTE *data, BYTE *len, WORD *id, WORD *seq) |
void | ICMPPut (NODE_INFO *remote, ICMP_CODE code, BYTE *data, BYTE len, WORD id, WORD seq) |
#define ICMPIsTxReady | ( | ) | MACIsTxReady(TRUE) |
#define MAX_ICMP_DATA (32ul) |
#define MAX_ICMP_DATA_LEN (MAX_ICMP_DATA) |
typedef enum _ICMP_CODE ICMP_CODE |
typedef enum _ICMP_CODE ICMP_REQUESTS |
enum _ICMP_CODE |
Gets the next ICMP packet
code | Buffer to hold ICMP code value | |
data | Buffer to hold ICMP data | |
len | Buffer to hold ICMP data length | |
id | Buffer to hold ICMP id | |
seq | Buffer to hold ICMP seq |
A ICMP packet is created and put on MAC.
remote | Remote node info | |
code | ICMP_ECHO_REPLY or ICMP_ECHO_REQUEST | |
data | Data bytes | |
len | Number of bytes to send | |
id | ICMP identifier | |
seq | ICMP sequence number |