mirror of
https://github.com/apache/nuttx.git
synced 2026-06-03 22:20:31 +08:00
tcp_send_unbuffered.c: Fix nxstyle errors
This commit is contained in:
committed by
Xiang Xiao
parent
1550a525e9
commit
28d168e1b8
@@ -67,7 +67,6 @@
|
|||||||
# define NEED_IPDOMAIN_SUPPORT 1
|
# define NEED_IPDOMAIN_SUPPORT 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define TCPIPv4BUF ((struct tcp_hdr_s *)&dev->d_buf[NET_LL_HDRLEN(dev) + IPv4_HDRLEN])
|
#define TCPIPv4BUF ((struct tcp_hdr_s *)&dev->d_buf[NET_LL_HDRLEN(dev) + IPv4_HDRLEN])
|
||||||
#define TCPIPv6BUF ((struct tcp_hdr_s *)&dev->d_buf[NET_LL_HDRLEN(dev) + IPv6_HDRLEN])
|
#define TCPIPv6BUF ((struct tcp_hdr_s *)&dev->d_buf[NET_LL_HDRLEN(dev) + IPv6_HDRLEN])
|
||||||
|
|
||||||
@@ -243,7 +242,6 @@ static uint16_t tcpsend_eventhandler(FAR struct net_driver_s *dev,
|
|||||||
|
|
||||||
pstate->snd_sent = pstate->snd_acked;
|
pstate->snd_sent = pstate->snd_acked;
|
||||||
|
|
||||||
|
|
||||||
/* Fall through to re-send data from the last that was ACKed */
|
/* Fall through to re-send data from the last that was ACKed */
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -301,7 +299,6 @@ static uint16_t tcpsend_eventhandler(FAR struct net_driver_s *dev,
|
|||||||
|
|
||||||
uint32_t sndlen = pstate->snd_buflen - pstate->snd_sent;
|
uint32_t sndlen = pstate->snd_buflen - pstate->snd_sent;
|
||||||
|
|
||||||
|
|
||||||
if (sndlen > conn->mss)
|
if (sndlen > conn->mss)
|
||||||
{
|
{
|
||||||
sndlen = conn->mss;
|
sndlen = conn->mss;
|
||||||
|
|||||||
Reference in New Issue
Block a user