diff options
Diffstat (limited to 'icmp.h')
-rw-r--r-- | icmp.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -22,3 +22,12 @@ struct __attribute__((packed)) icmp_echo { #define ICMP_MAX_PAYLOAD_LENGTH (MAX_DATAGRAM_SIZE - ICMP_PAYLOAD_OFFSET) #define ICMP_SAFE_PAYLOAD_LENGTH (MIN_MTU - IP_HEADER_SIZE - ICMP_PAYLOAD_OFFSET) + + +struct icmp_incoming { + const uint8_t *data; // points to internal buffer + size_t length; // length of 'data' + + int id, seqnum; + uint32_t source_addr; +}; |