The lwIP code seems to enforce an absolute maximum value for MSS of 536. If you set the TCP_MSS tag larger, the lwIP code limits the actual mss to 536. This value is hard-coded in tcp.c. I do not see any way for pcb->mss to become larger than 536, implying that the largest MSS that can be advertised by lwIP to be larger than 536.
The result is that a tcp write of more than 536 bytes creates multiple outbound TCP packets. I would like to send 'full size' packets of 1460 bytes. Is there a way to do so using lwIP? (I realize that the 536 value is probably in place to limit packets destined for PPP or etc. I assume there is nothng in lwIP currently to discover packet delivery failures and reduce MSS in response? Is this the reason why lwIP clamps MSS to 536? Or ...?) Thanks, Art R. -- View this message in context: http://www.nabble.com/MSS-maximum-tp16288107p16288107.html Sent from the lwip-users mailing list archive at Nabble.com. _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
