]> git.meshlink.io Git - utcp/blobdiff - utcp_priv.h
Distinguish between MTU and MSS.
[utcp] / utcp_priv.h
index c23279d82c4c4369a0de076a65c9d86d408e4687..de942a8968ae61ef27592126244ad935dcfe5475 100644 (file)
@@ -125,6 +125,7 @@ struct utcp_connection {
 
                uint32_t last;
                uint32_t cwnd;
+               uint32_t ssthresh;
        } snd;
 
        struct {
@@ -170,7 +171,8 @@ struct utcp {
 
        // Global socket options
 
-       uint16_t mtu;
+       uint16_t mtu; // The maximum size of a UTCP packet, including headers.
+       uint16_t mss; // The maximum size of the payload of a UTCP packet.
        int timeout; // sec
 
        // RTT variables