- fix error check
[oweals/gnunet.git] / src / mesh / mesh_protocol.h
index 37f2ffb72dbd72faf33375c2f9d152fc0fdc49d0..e2a18b1d808d7fb7fa1c105357c556e7d9258e21 100644 (file)
@@ -173,6 +173,16 @@ struct GNUNET_MESH_ToOrigin
      */
   uint32_t tid GNUNET_PACKED;
 
+    /**
+     * Number of hops to live
+     */
+  uint32_t ttl GNUNET_PACKED;
+
+    /**
+     * Unique ID of the packet
+     */
+  uint32_t pid GNUNET_PACKED;
+
     /**
      * OID of the tunnel
      */
@@ -190,7 +200,7 @@ struct GNUNET_MESH_ToOrigin
 
 
 /**
- * Message to acknowledte mesh data traffic.
+ * Message to acknowledge mesh data traffic.
  */
 struct GNUNET_MESH_ACK
 {
@@ -210,13 +220,10 @@ struct GNUNET_MESH_ACK
   struct GNUNET_PeerIdentity oid;
 
     /**
-     * Sender of the message.
+     * Maximum packet ID authorized.
      */
-  struct GNUNET_PeerIdentity sender;
+  uint32_t pid;
 
-    /**
-     * Payload follows
-     */
 };
 
 /**