ltm rule command TCP setmssΒΆ

iRule(1)		      BIG-IP TMSH Manual		      iRule(1)



TCP::setmss
       Sets the TCP max segment size.

SYNOPSIS
       TCP::setmss TCP_MAX_SEGMENT_SIZE

DESCRIPTION
       This iRule command sets the TCP max segment size in bytes.  The MSS
       does not consider the length of any common TCP options.	Users should
       set MSS to the desired path IP packet size, minus the IP header length
       (typically 20 bytes), minus the minimum TCP header length of 20 bytes.

       TCP will automatically apply the length of common options when
       partitioning data for delivery.

       Syntax

       TCP::setmss 

RETURN VALUE
VALID DURING
       ANY_EVENT

EXAMPLES
	# Match clientside MSS to serverside MSS
	when SERVER_CONNECTED {
	    set cli_mss [clientside { TCP::mss }]
	    set svr_mss [TCP::mss]
	    if { $cli_mss > $svr_mss } {
		clientside { TCP::setmss $svr_mss }
	    }
	}

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-11.6.0 --First introduced the command.



BIG-IP				  2017-01-31			      iRule(1)