Subject: Default minimum TCP MSS
To: None <tech-net@netbsd.org>
From: Darren Reed <darrenr@reed.wattle.id.au>
List: tech-net
Date: 07/07/2001 21:59:48
We should increase it from 32 to 64, if not higher.

Any objections ?

Darren

*** tcp_subr.c.orig	Tue Oct 17 11:48:30 2000
--- tcp_subr.c	Sat Jul  7 21:58:17 2001
***************
*** 1493,1504 ****
  
  	/*
  	 * As per RFC1122, use the default MSS value, unless they 
! 	 * sent us an offer.  Do not accept offers less than 32 bytes.
  	 */
  	mss = tcp_mssdflt;
  	if (offer)
  		mss = offer;
! 	mss = max(mss, 32);		/* sanity */
  	tp->t_peermss = mss;
  	mss -= tcp_optlen(tp);
  	if (tp->t_inpcb)
--- 1493,1504 ----
  
  	/*
  	 * As per RFC1122, use the default MSS value, unless they 
! 	 * sent us an offer.  Do not accept offers less than 64 bytes.
  	 */
  	mss = tcp_mssdflt;
  	if (offer)
  		mss = offer;
! 	mss = max(mss, 64);		/* sanity */
  	tp->t_peermss = mss;
  	mss -= tcp_optlen(tp);
  	if (tp->t_inpcb)