tcp: switch tcpflags_t to u16_t for all cases (bug #51326)

This changes tcpflags_t to be a u16_t for all cases.  The TCP Appropriate
Byte Count support added a new flag that used a bit past 8 and since this
flag is now required, tcpflags_t can no longer be a u8_t

This does not increase the size of struct tcp_pcb due to padding that
already existed (see bug #51326 for details)

Signed-off-by: goldsimon <goldsimon@gmx.de>
This commit is contained in:
Joel Cunningham 2017-06-27 15:52:38 -05:00 committed by goldsimon
parent 092c6c1f07
commit 229c9edad2

View File

@ -152,11 +152,7 @@ typedef err_t (*tcp_connected_fn)(void *arg, struct tcp_pcb *tpcb, err_t err);
} \
} while(0)
#if LWIP_WND_SCALE || TCP_LISTEN_BACKLOG || LWIP_TCP_TIMESTAMPS
typedef u16_t tcpflags_t;
#else
typedef u8_t tcpflags_t;
#endif
/**
* members common to struct tcp_pcb and struct tcp_listen_pcb