]> git.meshlink.io Git - meshlink/blobdiff - src/node.h
Fast retries and timeout of UDP probes.
[meshlink] / src / node.h
index 24f78dcfc4efb91e7a4ad70d85389cf0d1a5deb0..0131e35972c93086bbf8a6c02b6d21b2ef8aab1c 100644 (file)
@@ -73,7 +73,8 @@ typedef struct node_t {
        timeout_t udp_ping_timeout;             /* UDP probe event */
        struct timespec last_mtu_probe_sent;    /* Time that the last MTU probe was sent */
        struct timespec last_udp_probe_sent;    /* Time that the last UDP probe was sent */
-       int mtuprobes;                          /* Number of probes */
+       int8_t mtuprobes;                       /* MTU probes counter */
+       int8_t udpprobes;                       /* UDP probes counter */
        uint16_t last_mtu_len;                  /* Size of the last sent probe */
        uint16_t mtu;                           /* Maximum size of packets to send to this node */
        uint16_t maxmtu;                        /* Probed maximum MTU */