Thanks for you quick reply SirDice.
I'm not sure rexmit_min, rexmit_slop can be used for what I would like.
I would like to use TCP_MAXRT in order to say TCP connection is broken once this timer is elapsed. Another way of achieving it would be to do it by means of TM_TCP_MAX_REXMIT option. rexmit_min, rexmit_slop seems to be more related to the minimum time to start retransmission.
Here you have what BSD 4.4 socket API says about it:
Sets the amount of time in seconds before the connection is broken once TCP starts retransmitting, or probing a zero window when the peer does not respond. A TCP_MAXRT value of 0 means the system default, and -1 means retransmit forever. If a positive value is specified, it may be rounded up to the connection next retransmission time. Note that unless the TCP_MAXRT value is -1 (transmit forever), the connection can also be broken if the number of maximum retransmission TM_TCP_MAX_REXMIT has been reached. See TM_TCP_MAX_REXMIT below.
Default 0. Meaning: use the system default of TM_TCP_MAX_REXMIT times network computed round trip time for an established connection. For a non-established connection, since there is no computed round trip time yet, the connection can be broken when either 75 seconds or when TM_TCP_MAX_REXMIT times default network round trip time have elapsed, whichever occurs first).