]> git.meshlink.io Git - meshlink/blobdiff - src/node.h
Count the number of correctly received UDP packets.
[meshlink] / src / node.h
index c567ad92c346806ef3a2685a5b3cb012328b68f6..662ad68311b7ad0e53b8ac138fd9c038a4339f35 100644 (file)
@@ -77,6 +77,7 @@ typedef struct node_t {
 
        uint32_t sent_seqno;                    /* Sequence number last sent to this node */
        uint32_t received_seqno;                /* Sequence number last received from this node */
+       uint32_t received;                      /* Total valid packets received from this node */
        uint32_t farfuture;                     /* Packets in a row that have arrived from the far future */
        unsigned char* late;                    /* Bitfield marking late packets */