Set a default MSS when establishing tcb if unset 46/35146/2
authorBen Magistro <[email protected]>
Sat, 29 Jan 2022 17:32:25 +0000 (17:32 +0000)
committerKonstantin Ananyev <[email protected]>
Fri, 4 Feb 2022 11:49:31 +0000 (11:49 +0000)
commitfef6f51d19e390757db6007127878d56a17c4e24
tree56108a776fdb0bd50160e9f7e6fe8e3109f533f1
parent324b4cfd81e2db76d0b817f886ee34ba12e42a3c
Set a default MSS when establishing tcb if unset

While the caller to tle_tcp_stream_establish, should provide a complete
connection info to include mss, if it is not provided it will trigger a
divide by zero in tle_tcp_stream_writev. RFCs have defined a default
value for IPv4 and IPv6, which is leveraged if left unspecified.

Signed-off-by: Ben Magistro <[email protected]>
Change-Id: Ic29f4398b22a601eddf2a501e9cc185106457303
lib/libtle_l4p/tcp_rxtx.c