]> rtime.felk.cvut.cz Git - frescor/fna.git/blobdiff - src_frescan/frescan_packets.h
corrected an error in the sporadic servers... the activation time is the timestamp...
[frescor/fna.git] / src_frescan / frescan_packets.h
index 62e57489a24d65752363fea649de1b4c81a9b213..37e01f3fcb59b0b822df03d0d1a87766ee04e250 100644 (file)
@@ -25,6 +25,7 @@
 #ifndef _MARTE_FRESCAN_PACKETS_H_
 #define _MARTE_FRESCAN_PACKETS_H_
 
+#include <time.h>             // struct timespec
 #include <stdint.h>           // uint8_t ...
 #include "frescan.h"          // frescan_flags_t
 #include <misc/linux_list.h>  // struct list_head
@@ -63,6 +64,7 @@
  * @buffer_head: pointer to first byte of the buffer that is going to be sent
  * @buffer_read_pointer: pointer to the part of the buffer being read
  * @buffer_pending_bytes: bytes waiting to be sent
+ * @timestamp: time when the packet was enqueued (activation time)
  * @pool_pos: position in the packets pool to know how to free it
  *
  * NOTE: the buffers could also be used on the receiving part to support
@@ -78,6 +80,7 @@ typedef struct {
         uint8_t *buffer_head;         // only for sending packets
         uint8_t *buffer_read_pointer; // only for sending packets
         uint32_t buffer_pending_bytes; // only for sending packets
+        struct timespec timestamp;
         int pool_pos;
 } frescan_packet_t;