mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Networking: Get rid of the tcp_mss macro. It is confusing and only obfuscates what is really going on
This commit is contained in:
@@ -354,9 +354,9 @@ static uint16_t sendfile_interrupt(FAR struct net_driver_s *dev, FAR void *pvcon
|
||||
|
||||
uint32_t sndlen = pstate->snd_flen - pstate->snd_sent;
|
||||
|
||||
if (sndlen > tcp_mss(conn))
|
||||
if (sndlen > conn->mss)
|
||||
{
|
||||
sndlen = tcp_mss(conn);
|
||||
sndlen = conn->mss;
|
||||
}
|
||||
|
||||
/* Check if we have "space" in the window */
|
||||
|
||||
Reference in New Issue
Block a user