From: Guus Sliepen Date: Sat, 28 Mar 2020 21:14:51 +0000 (+0100) Subject: Add utcp_get_mss(). X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=41112d3f0b47bf28cdf4b12798b4588c74005e46;p=utcp Add utcp_get_mss(). --- diff --git a/utcp.c b/utcp.c index 3faf238..cf722e5 100644 --- a/utcp.c +++ b/utcp.c @@ -2059,6 +2059,10 @@ uint16_t utcp_get_mtu(struct utcp *utcp) { return utcp ? utcp->mtu : 0; } +uint16_t utcp_get_mss(struct utcp *utcp) { + return utcp ? utcp->mss : 0; +} + void utcp_set_mtu(struct utcp *utcp, uint16_t mtu) { if(!utcp) { return; diff --git a/utcp.h b/utcp.h index c570b32..76840fa 100644 --- a/utcp.h +++ b/utcp.h @@ -86,6 +86,7 @@ extern int utcp_get_user_timeout(struct utcp *utcp); extern void utcp_set_user_timeout(struct utcp *utcp, int seconds); extern uint16_t utcp_get_mtu(struct utcp *utcp); +extern uint16_t utcp_get_mss(struct utcp *utcp); extern void utcp_set_mtu(struct utcp *utcp, uint16_t mtu); extern void utcp_reset_timers(struct utcp *utcp);