summaryrefslogtreecommitdiff
path: root/icmp.h
diff options
context:
space:
mode:
Diffstat (limited to 'icmp.h')
-rw-r--r--icmp.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/icmp.h b/icmp.h
index 4cccb95..eed1714 100644
--- a/icmp.h
+++ b/icmp.h
@@ -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;
+};