Networking: Fixes an important TCP bug: 16-bit flags was being converted to 8-bits in a few locations, causing loss of status indications

This commit is contained in:
Gregory Nutt 2015-05-27 17:17:42 -06:00
parent 4fd0192a3e
commit d6c3ed1c6f
3 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@
void tcp_poll(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn)
{
uint8_t result;
uint16_t result;
/* Verify that the connection is established */

View File

@ -103,8 +103,8 @@ static void tcp_input(FAR struct net_driver_s *dev, unsigned int iplen)
unsigned int hdrlen;
uint16_t tmp16;
uint16_t flags;
uint16_t result;
uint8_t opt;
uint8_t result;
int len;
int i;

View File

@ -98,8 +98,8 @@
void tcp_timer(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn,
int hsec)
{
uint16_t result;
uint8_t hdrlen;
uint8_t result;
/* Set up for the callback. We can't know in advance if the application
* is going to send a IPv4 or an IPv6 packet, so this setup may not