Networking: Get rid of the tcp_mss macro. It is confusing and only obfuscates what is really going on

This commit is contained in:
Gregory Nutt
2015-08-27 08:39:17 -06:00
parent 007aabc46f
commit 3bcdb218ff
7 changed files with 14 additions and 20 deletions
+2 -2
View File
@@ -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 */